rubyx/lib/vm/values/reference.rb

12 lines
232 B
Ruby
Raw Normal View History

module Vm
2014-06-14 22:48:12 +02:00
class Reference < Word
# needs to be here as Word's constructor is private (to make it abstract)
def initialize reg , clazz = nil
super(reg)
@clazz = clazz
end
attr_accessor :clazz
end
end