Class: Foxtail::Syntax::Parser::AST::VariableReference
- Inherits:
-
SyntaxNode
- Object
- BaseNode
- SyntaxNode
- Foxtail::Syntax::Parser::AST::VariableReference
- Defined in:
- lib/foxtail/syntax/parser/ast/variable_reference.rb
Overview
Represents references to variables passed as arguments (e.g., $variable)
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
Attributes inherited from SyntaxNode
Attributes inherited from BaseNode
Instance Method Summary collapse
- #children ⇒ Object
-
#initialize(id) ⇒ VariableReference
constructor
A new instance of VariableReference.
Methods inherited from SyntaxNode
Methods inherited from BaseNode
Constructor Details
#initialize(id) ⇒ VariableReference
Returns a new instance of VariableReference.
11 12 13 14 |
# File 'lib/foxtail/syntax/parser/ast/variable_reference.rb', line 11 def initialize(id) super() @id = id end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
9 10 11 |
# File 'lib/foxtail/syntax/parser/ast/variable_reference.rb', line 9 def id @id end |
Instance Method Details
#children ⇒ Object
16 |
# File 'lib/foxtail/syntax/parser/ast/variable_reference.rb', line 16 def children = [id] |