Class: KDL::Value::String

Inherits:
KDL::Value show all
Defined in:
lib/kdl/value.rb

Constant Summary

Constants inherited from KDL::Value

Null

Instance Attribute Summary

Attributes inherited from KDL::Value

#format, #type, #value

Instance Method Summary collapse

Methods inherited from KDL::Value

#as_type, from, #initialize, #to_s

Constructor Details

This class inherits a constructor from KDL::Value

Instance Method Details

#==(other) ⇒ Object



71
72
73
# File 'lib/kdl/value.rb', line 71

def ==(other)
  other.is_a?(String) && value == other.value
end

#stringify_valueObject



67
68
69
# File 'lib/kdl/value.rb', line 67

def stringify_value
  StringDumper.call(value)
end