to_s for reg instructions

This commit is contained in:
Torsten Ruger
2015-07-24 13:23:56 +03:00
parent fa552bf751
commit 139b0174d8
10 changed files with 47 additions and 5 deletions

View File

@ -8,10 +8,10 @@ module Register
raise "No block" unless to
@block = to
end
attr_reader :block
attr_reader :block
def to_s
"Branch(to: #{block.name})"
"Branch(block: #{block.name})"
end
end