Class: Ruby::Rego::AST::BracketRefArg

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

Overview

Bracket-based reference argument (e.g. [0]).

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) ⇒ BracketRefArg

Returns a new instance of BracketRefArg.

Parameters:

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


52
53
54
# File 'lib/ruby/rego/ast/reference.rb', line 52

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