Class: KDL::Value::Custom

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

Constant Summary

Constants inherited from KDL::Value

Null

Instance Attribute Summary collapse

Attributes inherited from KDL::Value

#format, #type, #value

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from KDL::Value

#==, #as_type, from, #initialize, #inspect, #method_missing, #respond_to_missing?, #stringify_value, #to_s

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 Attribute Details

#oriinal_valueObject (readonly)

Returns the value of attribute oriinal_value.



144
145
146
# File 'lib/kdl/value.rb', line 144

def oriinal_value
  @oriinal_value
end

Class Method Details

.call(value, type) ⇒ Object



146
147
148
# File 'lib/kdl/value.rb', line 146

def self.call(value, type)
  new(value, type:)
end

Instance Method Details

#to_v1Object



154
155
156
# File 'lib/kdl/value.rb', line 154

def to_v1
  self
end

#to_v2Object



158
159
160
# File 'lib/kdl/value.rb', line 158

def to_v2
  self
end

#versionObject



150
151
152
# File 'lib/kdl/value.rb', line 150

def version
  nil
end