Class: SmartConfig::Formatters::Float

Inherits:
Object
  • Object
show all
Defined in:
lib/smart_config/formatters/float.rb

Overview

Float formats the value into a float

Class Method Summary collapse

Class Method Details

.format(value) ⇒ Object



8
9
10
11
12
# File 'lib/smart_config/formatters/float.rb', line 8

def self.format(value)
  return nil if value.nil?

  value.to_f
end