Class: Float
- Inherits:
-
Object
- Object
- Float
- Defined in:
- lib/em-ucengine/utils.rb
Instance Method Summary collapse
- #days ⇒ Object (also: #day)
- #hours ⇒ Object (also: #hour)
- #mins ⇒ Object (also: #min)
- #secs ⇒ Object (also: #sec)
Instance Method Details
#days ⇒ Object Also known as: day
26 27 28 |
# File 'lib/em-ucengine/utils.rb', line 26 def days return hours * 24 end |
#hours ⇒ Object Also known as: hour
30 31 32 |
# File 'lib/em-ucengine/utils.rb', line 30 def hours return mins * 60 end |
#mins ⇒ Object Also known as: min
34 35 36 |
# File 'lib/em-ucengine/utils.rb', line 34 def mins return self * 60 end |
#secs ⇒ Object Also known as: sec
38 39 40 |
# File 'lib/em-ucengine/utils.rb', line 38 def secs return self end |