rubyx/lib/virtual/slots/message_slot.rb
Torsten Ruger 6a23ef8b26 storing method, not just name in message
goes with a rename and other admin
2015-07-01 19:39:23 +03:00

41 lines
969 B
Ruby

module Virtual
# The current Message is one of four objects the virtual machine knows
#
# Slots represent instance variables of objects, so MessageSlots
# represent instance variables of Message objects.
# The Message has a layout as per the constant above
class MessageSlot < Slot
def initialize type = Unknown , value = nil
super(type , value )
end
def object_name
:message
end
end
# named classes exist for slots that often accessed
# Return is the return of MessageSlot
class Return < MessageSlot
def initialize type = Unknown, value = nil
super( type , value )
end
end
# Self is the self in MessageSlot
class Self < MessageSlot
def initialize type = Unknown, value = nil
super( type , value )
end
end
# MessageMethod of the current message
class MessageMethod < MessageSlot
def initialize type = Unknown, value = nil
super( type , value )
end
end
end