Class: KDL::Value::NullImpl

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, #to_s

Constructor Details

#initialize(_ = nil, format: nil, type: nil) ⇒ NullImpl

Returns a new instance of NullImpl.



77
78
79
# File 'lib/kdl/value.rb', line 77

def initialize(_=nil, format: nil, type: nil)
  super(nil, type: type)
end

Instance Method Details

#==(other) ⇒ Object



85
86
87
# File 'lib/kdl/value.rb', line 85

def ==(other)
  other.is_a?(NullImpl)
end

#stringify_valueObject



81
82
83
# File 'lib/kdl/value.rb', line 81

def stringify_value
  "null"
end