rubyx/test/support/fake_int.rb
Torsten Ruger 67100a3ef8 write adjusted address
and rename integer to address in label
1k hurray
2018-05-31 00:07:58 +03:00

21 lines
308 B
Ruby

class FakeInt
attr_reader :value
def initialize(val)
set_value(val)
end
def is_a?(clazz)
clazz == Parfait::Integer
end
def byte_length
4
end
def set_value(val)
@value = val
end
end
class FakeAddress < FakeInt
def is_a?(clazz)
clazz == Parfait::ReturnAddress
end
end