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