Class: Float
- Inherits:
-
Object
- Object
- Float
- Defined in:
- lib/sinatra/params/float.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
Instance Method Details
#to_date ⇒ Object
21 22 23 |
# File 'lib/sinatra/params/float.rb', line 21 def to_date Time.at(self).to_date end |
#to_datetime ⇒ Object
25 26 27 |
# File 'lib/sinatra/params/float.rb', line 25 def to_datetime Time.at(self).to_datetime end |
#to_time ⇒ Object
17 18 19 |
# File 'lib/sinatra/params/float.rb', line 17 def to_time Time.at(self) end |