Class: Foxtail::Bundle::Parser::AST::VariableReference
- Inherits:
-
Data
- Object
- Data
- Foxtail::Bundle::Parser::AST::VariableReference
- Defined in:
- lib/foxtail/bundle/parser/ast.rb,
lib/foxtail/bundle/parser/ast.rb
Overview
Variable reference expression ($variable) in Fluent patterns
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
- String
-
The variable name (without $ prefix).
Instance Method Summary collapse
-
#initialize(name:) ⇒ VariableReference
constructor
A new instance of VariableReference.
Constructor Details
#initialize(name:) ⇒ VariableReference
Returns a new instance of VariableReference.
35 |
# File 'lib/foxtail/bundle/parser/ast.rb', line 35 def initialize(name:) = super(name: name.to_s) |
Instance Attribute Details
#name ⇒ Object (readonly)
- String
-
The variable name (without $ prefix)
33 34 35 |
# File 'lib/foxtail/bundle/parser/ast.rb', line 33 def name @name end |