rubyx/lib/virtual/slots/next_message_slot.rb
Torsten Ruger 218fafca05 renames
2015-06-29 20:55:45 +03:00

48 lines
1.1 KiB
Ruby

module Virtual
# The next Message is one of four objects the virtual machine knows
#
# Slots represent instance variables of objects, so NewMessageSlots
# represent instance variables of NewMessage objects.
# The Message has a layout as per the constant above
class NewMessageSlot < Slot
def initialize type = Unknown, value = nil
super( type , value )
end
end
# named classes exist for slots that often accessed
# NewReturn is the return of NewMessageSlot
class NewReturn < NewMessageSlot
def initialize type = Unknown, value = nil
super( type , value )
end
end
# NewSelf is the self of NewMessageSlot
class NewSelf < NewMessageSlot
def initialize type = Unknown, value = nil
super( type , value )
end
end
# NewMessageName of the next message
class NewMessageName < NewMessageSlot
def initialize type = Unknown, value = nil
super( type , value )
end
end
# NewMessageName of the next message
class NewArgSlot < NewMessageSlot
def initialize index , type = Unknown, value = nil
@index = index
super( type , value )
end
attr_reader :index
end
end