Class: CastingAttributes::TypeCaster::Float
- Defined in:
- lib/casting_attributes/type_caster/float.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#initialize, #readers, #storage_var, #writers
Constructor Details
This class inherits a constructor from CastingAttributes::TypeCaster::Base
Instance Method Details
#typecast(value) ⇒ Object
5 6 7 |
# File 'lib/casting_attributes/type_caster/float.rb', line 5 def typecast(value) value.to_f end |