Class: KDL::Value::String

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

Direct Known Subclasses

KDL::V1::Value::String

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, #inspect, #method_missing, #respond_to_missing?, #to_s, #to_v2, #version

Constructor Details

This class inherits a constructor from KDL::Value

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class KDL::Value

Instance Method Details

#stringify_valueObject



115
116
117
# File 'lib/kdl/value.rb', line 115

def stringify_value
  StringDumper.call(value)
end

#to_v1Object



119
120
121
# File 'lib/kdl/value.rb', line 119

def to_v1
  V1::Value::String.new(value, format:, type:)
end