Class: SyntaxTree::YARV::VM::Frame
- Inherits:
-
Object
- Object
- SyntaxTree::YARV::VM::Frame
- Defined in:
- lib/syntax_tree/yarv/vm.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#_self ⇒ Object
readonly
Returns the value of attribute _self.
-
#iseq ⇒ Object
readonly
Returns the value of attribute iseq.
-
#line ⇒ Object
Returns the value of attribute line.
-
#nesting ⇒ Object
readonly
Returns the value of attribute nesting.
-
#parent ⇒ Object
readonly
Returns the value of attribute parent.
-
#pc ⇒ Object
Returns the value of attribute pc.
-
#stack_index ⇒ Object
readonly
Returns the value of attribute stack_index.
-
#svars ⇒ Object
readonly
Returns the value of attribute svars.
Instance Method Summary collapse
-
#initialize(iseq, parent, stack_index, _self, nesting) ⇒ Frame
constructor
A new instance of Frame.
Constructor Details
#initialize(iseq, parent, stack_index, _self, nesting) ⇒ Frame
Returns a new instance of Frame.
29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/syntax_tree/yarv/vm.rb', line 29 def initialize(iseq, parent, stack_index, _self, nesting) @iseq = iseq @parent = parent @stack_index = stack_index @_self = _self @nesting = nesting @svars = {} @line = iseq.line @pc = 0 end |
Instance Attribute Details
#_self ⇒ Object (readonly)
Returns the value of attribute _self.
26 27 28 |
# File 'lib/syntax_tree/yarv/vm.rb', line 26 def _self @_self end |
#iseq ⇒ Object (readonly)
Returns the value of attribute iseq.
26 27 28 |
# File 'lib/syntax_tree/yarv/vm.rb', line 26 def iseq @iseq end |
#line ⇒ Object
Returns the value of attribute line.
27 28 29 |
# File 'lib/syntax_tree/yarv/vm.rb', line 27 def line @line end |
#nesting ⇒ Object (readonly)
Returns the value of attribute nesting.
26 27 28 |
# File 'lib/syntax_tree/yarv/vm.rb', line 26 def nesting @nesting end |
#parent ⇒ Object (readonly)
Returns the value of attribute parent.
26 27 28 |
# File 'lib/syntax_tree/yarv/vm.rb', line 26 def parent @parent end |
#pc ⇒ Object
Returns the value of attribute pc.
27 28 29 |
# File 'lib/syntax_tree/yarv/vm.rb', line 27 def pc @pc end |
#stack_index ⇒ Object (readonly)
Returns the value of attribute stack_index.
26 27 28 |
# File 'lib/syntax_tree/yarv/vm.rb', line 26 def stack_index @stack_index end |
#svars ⇒ Object (readonly)
Returns the value of attribute svars.
26 27 28 |
# File 'lib/syntax_tree/yarv/vm.rb', line 26 def svars @svars end |