Class: SyntaxTree::YARV::VM::MethodFrame

Inherits:
Frame
  • Object
show all
Defined in:
lib/syntax_tree/yarv/vm.rb

Instance Attribute Summary collapse

Attributes inherited from Frame

#_self, #iseq, #line, #nesting, #parent, #pc, #stack_index, #svars

Instance Method Summary collapse

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

#blockObject (readonly)

Returns the value of attribute block.



55
56
57
# File 'lib/syntax_tree/yarv/vm.rb', line 55

def block
  @block
end

#nameObject (readonly)

Returns the value of attribute name.



55
56
57
# File 'lib/syntax_tree/yarv/vm.rb', line 55

def name
  @name
end