Class: Numeric
Instance Method Summary collapse
- #days ⇒ Object (also: #day)
- #hours ⇒ Object (also: #hour)
- #minutes ⇒ Object (also: #minute)
- #seconds ⇒ Object (also: #second)
Instance Method Details
#days ⇒ Object Also known as: day
27 28 29 |
# File 'lib/herpes/extensions.rb', line 27 def days self * 24.hours end |
#hours ⇒ Object Also known as: hour
23 24 25 |
# File 'lib/herpes/extensions.rb', line 23 def hours self * 60.minutes end |
#minutes ⇒ Object Also known as: minute
19 20 21 |
# File 'lib/herpes/extensions.rb', line 19 def minutes self * 60 end |
#seconds ⇒ Object Also known as: second
15 16 17 |
# File 'lib/herpes/extensions.rb', line 15 def seconds self end |