rename position accessor
for future
This commit is contained in:
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user