Class: Ruby::Rego::AST::StringLiteral

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

Overview

Represents a string 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) ⇒ StringLiteral

Returns a new instance of StringLiteral.

Parameters:

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


25
26
27
# File 'lib/ruby/rego/ast/literal.rb', line 25

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