Class: Ruby::Rego::AST::RefArg
- Defined in:
- lib/ruby/rego/ast/reference.rb
Overview
Base class for reference path arguments.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(value:, location: nil) ⇒ RefArg
constructor
A new instance of RefArg.
Methods inherited from Base
#==, #accept, #deconstruct_keys, #eql?, format_value, #hash, #to_s
Constructor Details
#initialize(value:, location: nil) ⇒ RefArg
Returns a new instance of RefArg.
30 31 32 33 |
# File 'lib/ruby/rego/ast/reference.rb', line 30 def initialize(value:, location: nil) super(location: location) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
36 37 38 |
# File 'lib/ruby/rego/ast/reference.rb', line 36 def value @value end |