Class: Ruby::Rego::AST::WithModifier
- Defined in:
- lib/ruby/rego/ast/query.rb
Overview
Represents a with modifier.
Instance Attribute Summary collapse
-
#target ⇒ Object
readonly
-
#value ⇒ Object
readonly
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(target:, value:, location: nil) ⇒ WithModifier
constructor
A new instance of WithModifier.
Methods inherited from Base
#==, #accept, #deconstruct_keys, #eql?, format_value, #hash, #to_s
Constructor Details
#initialize(target:, value:, location: nil) ⇒ WithModifier
Returns a new instance of WithModifier.
49 50 51 52 53 |
# File 'lib/ruby/rego/ast/query.rb', line 49 def initialize(target:, value:, location: nil) super(location: location) @target = target @value = value end |
Instance Attribute Details
#target ⇒ Object (readonly)
56 57 58 |
# File 'lib/ruby/rego/ast/query.rb', line 56 def target @target end |
#value ⇒ Object (readonly)
59 60 61 |
# File 'lib/ruby/rego/ast/query.rb', line 59 def value @value end |