Class: SyntaxTree::YARV::InstructionSequence::InstructionList::Node

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value, next_node = nil) ⇒ Node

Returns a new instance of Node.



39
40
41
42
# File 'lib/syntax_tree/yarv/instruction_sequence.rb', line 39

def initialize(value, next_node = nil)
  @value = value
  @next_node = next_node
end

Instance Attribute Details

#next_nodeObject

Returns the value of attribute next_node.



37
38
39
# File 'lib/syntax_tree/yarv/instruction_sequence.rb', line 37

def next_node
  @next_node
end

#valueObject

Returns the value of attribute value.



37
38
39
# File 'lib/syntax_tree/yarv/instruction_sequence.rb', line 37

def value
  @value
end