Class: Ruby::Rego::StringValue

Inherits:
Value
  • Object
show all
Defined in:
lib/ruby/rego/value.rb

Overview

Represents a string value.

Constant Summary collapse

TYPE_NAME =
"string"

Instance Attribute Summary

Attributes inherited from Value

#value

Instance Method Summary collapse

Methods inherited from Value

#==, #fetch_reference, from_ruby, #hash, #object_key, #to_ruby, #truthy?, #type_name, #undefined?

Constructor Details

#initialize(value) ⇒ StringValue

Create a string value.

Parameters:

  • value (String)

    string value



141
142
143
# File 'lib/ruby/rego/value.rb', line 141

def initialize(value)
  super(String(value))
end