rubyx/lib/virtual/instructions/instance_get.rb
2015-05-06 08:55:14 +03:00

12 lines
356 B
Ruby

module Virtual
# Get a instance variable by _name_ . So we have to resolve the name to an index to trnsform into a Slot
# The slot may the be used in a set on left or right hand. The transformation is done by GetImplementation
class InstanceGet < Instruction
def initialize name
@name = name.to_sym
end
attr_reader :name
end
end