Class: SyntaxTree::YARV::VM::MethodFrame
- Defined in:
- lib/syntax_tree/yarv/vm.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
readonly
Returns the value of attribute block.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from Frame
#_self, #iseq, #line, #nesting, #parent, #pc, #stack_index, #svars
Instance Method Summary collapse
-
#initialize(iseq, nesting, parent, stack_index, _self, name, block) ⇒ MethodFrame
constructor
A new instance of MethodFrame.
Constructor Details
#initialize(iseq, nesting, parent, stack_index, _self, name, block) ⇒ MethodFrame
Returns a new instance of MethodFrame.
57 58 59 60 61 |
# File 'lib/syntax_tree/yarv/vm.rb', line 57 def initialize(iseq, nesting, parent, stack_index, _self, name, block) super(iseq, parent, stack_index, _self, nesting) @name = name @block = block end |
Instance Attribute Details
#block ⇒ Object (readonly)
Returns the value of attribute block.
55 56 57 |
# File 'lib/syntax_tree/yarv/vm.rb', line 55 def block @block end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
55 56 57 |
# File 'lib/syntax_tree/yarv/vm.rb', line 55 def name @name end |