Class: Ruby::Rego::AST::SomeDecl
- Defined in:
- lib/ruby/rego/ast/query.rb
Overview
Represents a some declaration.
Instance Attribute Summary collapse
-
#collection ⇒ Object?
readonly
-
#variables ⇒ Array<Variable>
readonly
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(variables:, collection: nil, location: nil) ⇒ SomeDecl
constructor
A new instance of SomeDecl.
Methods inherited from Base
#==, #accept, #deconstruct_keys, #eql?, format_value, #hash, #to_s
Constructor Details
#initialize(variables:, collection: nil, location: nil) ⇒ SomeDecl
Returns a new instance of SomeDecl.
31 32 33 34 35 |
# File 'lib/ruby/rego/ast/query.rb', line 31 def initialize(variables:, collection: nil, location: nil) super(location: location) @variables = variables.dup.freeze @collection = collection end |
Instance Attribute Details
#collection ⇒ Object? (readonly)
41 42 43 |
# File 'lib/ruby/rego/ast/query.rb', line 41 def collection @collection end |
#variables ⇒ Array<Variable> (readonly)
38 39 40 |
# File 'lib/ruby/rego/ast/query.rb', line 38 def variables @variables end |