Module: XDR::Concerns::FloatConverter

Included in:
Double, Float
Defined in:
lib/xdr/concerns/float_converter.rb

Instance Method Summary collapse

Instance Method Details

#valid?(val) ⇒ Boolean

Returns:

  • (Boolean)


2
3
4
# File 'lib/xdr/concerns/float_converter.rb', line 2

def valid?(val)
  val.is_a?(Float)
end