Class: Foxtail::Bundle::Parser::AST::FunctionReference
- Inherits:
-
Data
- Object
- Data
- Foxtail::Bundle::Parser::AST::FunctionReference
- Defined in:
- lib/foxtail/bundle/parser/ast.rb,
lib/foxtail/bundle/parser/ast.rb
Overview
Function call expression (FUNCTION()) in Fluent patterns
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
- Array
-
Function arguments (positional and named).
-
#name ⇒ Object
readonly
- String
-
The function name (uppercase by convention).
Instance Method Summary collapse
-
#initialize(name:, args: []) ⇒ FunctionReference
constructor
A new instance of FunctionReference.
Constructor Details
#initialize(name:, args: []) ⇒ FunctionReference
Returns a new instance of FunctionReference.
70 |
# File 'lib/foxtail/bundle/parser/ast.rb', line 70 def initialize(name:, args: []) = super(name: name.to_s, args:) |
Instance Attribute Details
#args ⇒ Object (readonly)
- Array
-
Function arguments (positional and named)
67 68 69 |
# File 'lib/foxtail/bundle/parser/ast.rb', line 67 def args @args end |
#name ⇒ Object (readonly)
- String
-
The function name (uppercase by convention)
67 68 69 |
# File 'lib/foxtail/bundle/parser/ast.rb', line 67 def name @name end |