rename position accessor

for future
This commit is contained in:
Torsten Ruger
2016-12-28 21:40:06 +02:00
parent c60949fe24
commit 80237e5033
8 changed files with 11 additions and 11 deletions

View File

@ -35,7 +35,7 @@ module Register
# labels have the same position as their next
def set_position position , labels = []
position = self.label.set_position( position , labels ) if self.label
set_position self.label.set_position( position , labels ) if self.label
super(position,labels)
end

View File

@ -17,6 +17,7 @@ module Register
def to_s
"Label: #{@name} (#{self.next.class.name.split("::").last})"
end
def sof_reference_name
@name
end
@ -61,7 +62,7 @@ module Register
def set_position position , labels = []
return position if labels.include?(self)
labels << self
self.position = position
super(position , labels)
self.next.set_position(position,labels)
end