Class: Kumi::Core::NAST::Call
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#fn ⇒ Object
readonly
Returns the value of attribute fn.
-
#opts ⇒ Object
readonly
Returns the value of attribute opts.
Attributes inherited from Node
Instance Method Summary collapse
- #accept(visitor) ⇒ Object
-
#initialize(fn:, args:, opts: {}, **k) ⇒ Call
constructor
A new instance of Call.
Constructor Details
#initialize(fn:, args:, opts: {}, **k) ⇒ Call
Returns a new instance of Call.
92 93 94 95 96 97 |
# File 'lib/kumi/core/nast.rb', line 92 def initialize(fn:, args:, opts: {}, **k) super(**k) @fn = fn.to_sym @args = args @opts = opts end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
90 91 92 |
# File 'lib/kumi/core/nast.rb', line 90 def args @args end |
#fn ⇒ Object (readonly)
Returns the value of attribute fn.
90 91 92 |
# File 'lib/kumi/core/nast.rb', line 90 def fn @fn end |
#opts ⇒ Object (readonly)
Returns the value of attribute opts.
90 91 92 |
# File 'lib/kumi/core/nast.rb', line 90 def opts @opts end |
Instance Method Details
#accept(visitor) ⇒ Object
99 100 101 |
# File 'lib/kumi/core/nast.rb', line 99 def accept(visitor) visitor.visit_call(self) end |