Class: Ruby::Rego::AST::Call
Overview
Represents a function or built-in call.
Instance Attribute Summary collapse
-
#args ⇒ Array<Object>
readonly
-
#name ⇒ Object
readonly
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(name:, args:, location: nil) ⇒ Call
constructor
A new instance of Call.
Methods inherited from Base
#==, #accept, #deconstruct_keys, #eql?, format_value, #hash, #to_s
Constructor Details
#initialize(name:, args:, location: nil) ⇒ Call
Returns a new instance of Call.
13 14 15 16 17 |
# File 'lib/ruby/rego/ast/call.rb', line 13 def initialize(name:, args:, location: nil) super(location: location) @name = name @args = args.dup.freeze end |
Instance Attribute Details
#args ⇒ Array<Object> (readonly)
23 24 25 |
# File 'lib/ruby/rego/ast/call.rb', line 23 def args @args end |
#name ⇒ Object (readonly)
20 21 22 |
# File 'lib/ruby/rego/ast/call.rb', line 20 def name @name end |