Module: Toy::Extensions::Float

Included in:
Float
Defined in:
lib/toy/extensions/float.rb

Instance Method Summary collapse

Instance Method Details

#to_store(value) ⇒ Object



4
5
6
# File 'lib/toy/extensions/float.rb', line 4

def to_store(value, *)
  value.nil? ? nil : value.to_f
end