2015-06-20 23:49:30 +03:00
|
|
|
module Virtual
|
|
|
|
|
|
|
|
# Slots in the Frame a re represented by instances of FrameSlot
|
|
|
|
|
2015-06-29 10:55:22 +03:00
|
|
|
# Slots in the Frame are local or temporary variables in a message
|
2015-06-20 23:49:30 +03:00
|
|
|
class FrameSlot < Slot
|
2015-09-23 18:35:37 +03:00
|
|
|
def initialize index , type , value = nil
|
2015-07-02 10:26:48 +03:00
|
|
|
super(type, value)
|
|
|
|
@index = index
|
2015-06-20 23:49:30 +03:00
|
|
|
end
|
2015-10-06 15:26:57 +03:00
|
|
|
attr_reader :index
|
|
|
|
|
|
|
|
def to_s
|
|
|
|
"#{self.class.name}.new(#{index} , #{type}, #{value})"
|
|
|
|
end
|
2015-06-30 09:39:45 +03:00
|
|
|
|
|
|
|
def object_name
|
|
|
|
return :frame
|
|
|
|
end
|
2015-06-20 23:49:30 +03:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|