Class: KDL::Value::NullImpl
- Inherits:
-
KDL::Value
- Object
- KDL::Value
- KDL::Value::NullImpl
- Defined in:
- lib/kdl/value.rb
Constant Summary
Constants inherited from KDL::Value
Instance Attribute Summary
Attributes inherited from KDL::Value
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(_ = nil, format: nil, type: nil) ⇒ NullImpl
constructor
A new instance of NullImpl.
- #stringify_value ⇒ Object
Methods inherited from KDL::Value
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_value ⇒ Object
81 82 83 |
# File 'lib/kdl/value.rb', line 81 def stringify_value "null" end |