Class: Ruby::Rego::AST::DotRefArg

Inherits:
RefArg show all
Defined in:
lib/ruby/rego/ast/reference.rb

Overview

Dot-based reference argument (e.g. .foo).

Instance Attribute Summary

Attributes inherited from RefArg

#value

Attributes inherited from Base

#location

Instance Method Summary collapse

Methods inherited from Base

#==, #accept, #deconstruct_keys, #eql?, format_value, #hash, #to_s

Constructor Details

#initialize(value:, location: nil) ⇒ DotRefArg

Returns a new instance of DotRefArg.

Parameters:

  • value (Object)
  • location (Location, nil) (defaults to: nil)


43
44
45
# File 'lib/ruby/rego/ast/reference.rb', line 43

def initialize(value:, location: nil)
  super
end