Class: Foxtail::Syntax::Parser::AST::SelectExpression
- Inherits:
-
SyntaxNode
- Object
- BaseNode
- SyntaxNode
- Foxtail::Syntax::Parser::AST::SelectExpression
- Defined in:
- lib/foxtail/syntax/parser/ast/select_expression.rb
Overview
Represents select expressions for conditional message variants
Instance Attribute Summary collapse
-
#selector ⇒ Object
Returns the value of attribute selector.
-
#variants ⇒ Object
Returns the value of attribute variants.
Attributes inherited from SyntaxNode
Attributes inherited from BaseNode
Instance Method Summary collapse
- #children ⇒ Object
-
#initialize(selector, variants) ⇒ SelectExpression
constructor
A new instance of SelectExpression.
Methods inherited from SyntaxNode
Methods inherited from BaseNode
Constructor Details
#initialize(selector, variants) ⇒ SelectExpression
Returns a new instance of SelectExpression.
12 13 14 15 16 |
# File 'lib/foxtail/syntax/parser/ast/select_expression.rb', line 12 def initialize(selector, variants) super() @selector = selector @variants = variants end |
Instance Attribute Details
#selector ⇒ Object
Returns the value of attribute selector.
9 10 11 |
# File 'lib/foxtail/syntax/parser/ast/select_expression.rb', line 9 def selector @selector end |
#variants ⇒ Object
Returns the value of attribute variants.
10 11 12 |
# File 'lib/foxtail/syntax/parser/ast/select_expression.rb', line 10 def variants @variants end |
Instance Method Details
#children ⇒ Object
18 |
# File 'lib/foxtail/syntax/parser/ast/select_expression.rb', line 18 def children = [selector, *variants] |