Class: Loveseat::Document::Property::Float
- Defined in:
- lib/loveseat/document/property/float.rb
Instance Attribute Summary
Attributes inherited from Base
Class Method Summary collapse
Methods inherited from Base
#empty?, #get, #initialize, #set
Constructor Details
This class inherits a constructor from Loveseat::Document::Property::Base
Class Method Details
.cast(value) ⇒ Object
5 6 7 |
# File 'lib/loveseat/document/property/float.rb', line 5 def self.cast(value) value.to_f end |