Class: Synthra::Parser::AST::CustomNode
- Defined in:
- lib/synthra/parser/ast.rb
Overview
Custom function call node
Represents a custom() type that calls a registered function. The function is called during generation with the context.
Instance Attribute Summary collapse
-
#function_name ⇒ Object
readonly
Returns the value of attribute function_name.
Instance Method Summary collapse
-
#initialize(function_name:, line: nil) ⇒ CustomNode
constructor
Create a new CustomNode.
Constructor Details
#initialize(function_name:, line: nil) ⇒ CustomNode
Create a new CustomNode
686 687 688 689 690 691 692 693 |
# File 'lib/synthra/parser/ast.rb', line 686 def initialize(function_name:, line: nil) super( name: "custom", arguments: { function: function_name }, line: line ) @function_name = function_name end |
Instance Attribute Details
#function_name ⇒ Object (readonly)
Returns the value of attribute function_name.
678 679 680 |
# File 'lib/synthra/parser/ast.rb', line 678 def function_name @function_name end |