Class: Rley::ParseRep::CSTRawNode
- Inherits:
-
Struct
- Object
- Struct
- Rley::ParseRep::CSTRawNode
- Defined in:
- lib/rley/parse_rep/parse_tree_builder.rb
Overview
Structure used internally by ParseTreeBuilder class.
Instance Attribute Summary collapse
-
#children ⇒ Object
Returns the value of attribute children.
-
#range ⇒ Object
Returns the value of attribute range.
-
#symbol ⇒ Object
Returns the value of attribute symbol.
Instance Method Summary collapse
-
#initialize(aRange, aSymbol) ⇒ CSTRawNode
constructor
Constructor.
Constructor Details
#initialize(aRange, aSymbol) ⇒ CSTRawNode
Constructor.
20 21 22 23 24 25 |
# File 'lib/rley/parse_rep/parse_tree_builder.rb', line 20 def initialize(aRange, aSymbol) super self.range = aRange self.symbol = aSymbol self.children = nil end |
Instance Attribute Details
#children ⇒ Object
Returns the value of attribute children
16 17 18 |
# File 'lib/rley/parse_rep/parse_tree_builder.rb', line 16 def children @children end |
#range ⇒ Object
Returns the value of attribute range
16 17 18 |
# File 'lib/rley/parse_rep/parse_tree_builder.rb', line 16 def range @range end |
#symbol ⇒ Object
Returns the value of attribute symbol
16 17 18 |
# File 'lib/rley/parse_rep/parse_tree_builder.rb', line 16 def symbol @symbol end |