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.
18 19 20 21 22 23 |
# File 'lib/rley/parse_rep/parse_tree_builder.rb', line 18 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
14 15 16 |
# File 'lib/rley/parse_rep/parse_tree_builder.rb', line 14 def children @children end |
#range ⇒ Object
Returns the value of attribute range
14 15 16 |
# File 'lib/rley/parse_rep/parse_tree_builder.rb', line 14 def range @range end |
#symbol ⇒ Object
Returns the value of attribute symbol
14 15 16 |
# File 'lib/rley/parse_rep/parse_tree_builder.rb', line 14 def symbol @symbol end |