Class: Ruby::Rego::AST::NullLiteral

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

Overview

Represents a null 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(location: nil) ⇒ NullLiteral

Returns a new instance of NullLiteral.

Parameters:

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


64
65
66
# File 'lib/ruby/rego/ast/literal.rb', line 64

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