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

#==, #canonical, canonicalize, canonicalize_each, canonicalize_float, #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



198
199
200
# File 'lib/ruby/rego/value.rb', line 198

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