Class: Attribeauty::Types::Float
- Inherits:
-
Object
- Object
- Attribeauty::Types::Float
- Defined in:
- lib/attribeauty/types/float.rb
Overview
custom float type
Instance Method Summary collapse
Instance Method Details
#cast(value) ⇒ Object
7 8 9 10 11 |
# File 'lib/attribeauty/types/float.rb', line 7 def cast(value) return if value.nil? Float(value) end |