Class: KDL::V1::Value::NullImpl

Inherits:
KDL::Value::NullImpl show all
Includes:
Methods
Defined in:
lib/kdl/v1/value.rb

Constant Summary

Constants inherited from KDL::Value

KDL::Value::Null

Instance Attribute Summary

Attributes inherited from KDL::Value

#format, #type, #value

Instance Method Summary collapse

Methods included from Methods

#==, #to_s, #to_v1, #version

Methods inherited from KDL::Value::NullImpl

#==, #initialize, #to_v1

Methods inherited from KDL::Value

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

Constructor Details

This class inherits a constructor from KDL::Value::NullImpl

Dynamic Method Handling

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

Instance Method Details

#stringify_valueObject



69
70
71
# File 'lib/kdl/v1/value.rb', line 69

def stringify_value
  "null"
end

#to_v2Object



73
74
75
# File 'lib/kdl/v1/value.rb', line 73

def to_v2
  type ? ::KDL::Value::NullImpl.new(type:) : ::KDL::Value::Null
end