Class: Maglev::Reflection::StackFrameMirror::FrameHash

Inherits:
Hash
  • Object
show all
Defined in:
lib/maglev/reflection/stack_frame_mirror.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#frame=(value) ⇒ Object (writeonly)

Sets the attribute frame

Parameters:

  • value

    the value to set the attribute frame to.



90
91
92
# File 'lib/maglev/reflection/stack_frame_mirror.rb', line 90

def frame=(value)
  @frame = value
end

Instance Method Details

#[]=(key, value) ⇒ Object



92
93
94
95
96
97
98
99
# File 'lib/maglev/reflection/stack_frame_mirror.rb', line 92

def []=(key, value)
  super
  if @frame
    @frame.thread.reflectee.__frame_at_temp_named_put(@frame.index,
                                                      key.to_s,
                                                      value)
  end
end