Class: Chelsy::Macro
Overview
AST node represents a macro invocation with or without arguments.
Instance Attribute Summary collapse
-
#args ⇒ Enumerable
readonly
Arguments.
-
#name ⇒ Symbol
readonly
Macro name.
Attributes inherited from Element
Instance Method Summary collapse
-
#initialize(name, args = nil, **rest) ⇒ Macro
constructor
initialize instance.
Constructor Details
Instance Attribute Details
#args ⇒ Enumerable (readonly)
Returns Arguments.
1158 1159 1160 |
# File 'lib/chelsy/ast.rb', line 1158 def args @args end |
#name ⇒ Symbol (readonly)
Returns Macro name.
1158 1159 1160 |
# File 'lib/chelsy/ast.rb', line 1158 def name @name end |