Class: SyntaxTree::YARV::InstructionSequence::InstructionList::Node
- Inherits:
-
Object
- Object
- SyntaxTree::YARV::InstructionSequence::InstructionList::Node
- Defined in:
- lib/syntax_tree/yarv/instruction_sequence.rb
Instance Attribute Summary collapse
-
#next_node ⇒ Object
Returns the value of attribute next_node.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value, next_node = nil) ⇒ Node
constructor
A new instance of Node.
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_node ⇒ Object
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 |
#value ⇒ Object
Returns the value of attribute value.
37 38 39 |
# File 'lib/syntax_tree/yarv/instruction_sequence.rb', line 37 def value @value end |