2018-05-30 09:54:18 +02:00
|
|
|
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
|
2018-05-30 23:07:58 +02:00
|
|
|
class FakeAddress < FakeInt
|
|
|
|
def is_a?(clazz)
|
|
|
|
clazz == Parfait::ReturnAddress
|
|
|
|
end
|
|
|
|
end
|