Class: Aspen::CustomGrammar::AST::Nodes::Expression
- Inherits:
-
Object
- Object
- Aspen::CustomGrammar::AST::Nodes::Expression
- Defined in:
- lib/aspen/custom_grammar/ast/nodes/expression.rb
Instance Attribute Summary collapse
-
#segments ⇒ Object
readonly
Returns the value of attribute segments.
Instance Method Summary collapse
-
#initialize(segments = []) ⇒ Expression
constructor
A new instance of Expression.
Constructor Details
#initialize(segments = []) ⇒ Expression
Returns a new instance of Expression.
9 10 11 |
# File 'lib/aspen/custom_grammar/ast/nodes/expression.rb', line 9 def initialize(segments=[]) @segments = segments end |
Instance Attribute Details
#segments ⇒ Object (readonly)
Returns the value of attribute segments.
7 8 9 |
# File 'lib/aspen/custom_grammar/ast/nodes/expression.rb', line 7 def segments @segments end |