Class: Loveseat::Document::Property::Float

Inherits:
Base
  • Object
show all
Defined in:
lib/loveseat/document/property/float.rb

Instance Attribute Summary

Attributes inherited from Base

#value

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