Class: Fixnum
- Inherits:
-
Object
- Object
- Fixnum
- 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
2 3 4 |
# File 'lib/em-ucengine/utils.rb', line 2 def days return hours * 24 end |
#hours ⇒ Object Also known as: hour
6 7 8 |
# File 'lib/em-ucengine/utils.rb', line 6 def hours return mins * 60 end |
#mins ⇒ Object Also known as: min
10 11 12 |
# File 'lib/em-ucengine/utils.rb', line 10 def mins return self * 60 end |
#secs ⇒ Object Also known as: sec
14 15 16 |
# File 'lib/em-ucengine/utils.rb', line 14 def secs return self end |