Class: Ruby::Rego::AST::BooleanLiteral

Inherits:
Literal show all
Defined in:
lib/ruby/rego/ast/literal.rb

Overview

Represents a boolean literal.

Instance Attribute Summary

Attributes inherited from Literal

#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) ⇒ BooleanLiteral

Returns a new instance of BooleanLiteral.

Parameters:

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


56
57
58
# File 'lib/ruby/rego/ast/literal.rb', line 56

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