Method: Transproc::Coercions.to_float

Defined in:
lib/transproc/coercions.rb

.to_float(value) ⇒ Float

Coerce value into a float

Examples:

Transproc(:to_float)['1.2']
# => 1.2


93
94
95
# File 'lib/transproc/coercions.rb', line 93

def self.to_float(value)
  value.to_f
end