small to_s changes
This commit is contained in:
parent
4ce4775902
commit
13eb017394
@ -30,7 +30,7 @@ module Register
|
||||
attr_accessor :array , :index , :register
|
||||
|
||||
def to_s
|
||||
"GetSlot: #{array} [#{index}] -> #{register}"
|
||||
"GetSlot: #{array}[#{index}] -> #{register}"
|
||||
end
|
||||
|
||||
end
|
||||
|
@ -17,7 +17,9 @@ module Register
|
||||
end
|
||||
|
||||
def to_s
|
||||
"#{symbol}:#{type}:#{value}"
|
||||
s = "#{symbol}:#{type}"
|
||||
s += ":#{value}" if value
|
||||
s
|
||||
end
|
||||
|
||||
def self.look_like_reg is_it
|
||||
|
Loading…
Reference in New Issue
Block a user