Class: KDL::V1::Value::Float

Inherits:
KDL::Value::Float 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, #to_v2, #version

Methods inherited from KDL::Value::Float

#==, #to_v1

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



41
42
43
44
45
46
47
# File 'lib/kdl/v1/value.rb', line 41

def stringify_value
  if value.nan? || value.infinite?
    warn "[WARNING] Attempting to serialize non-finite Float using KDL v1"
    return Null.stringify_value
  end
  super
end