Class: Integer
- Inherits:
-
Object
- Object
- Integer
- Defined in:
- lib/achoo/extensions.rb
Instance Method Summary collapse
- #day ⇒ Object (also: #days)
- #hour ⇒ Object (also: #hours)
- #minute ⇒ Object (also: #minutes)
Instance Method Details
#day ⇒ Object Also known as: days
38 |
# File 'lib/achoo/extensions.rb', line 38 def day; self * 86400; end |
#hour ⇒ Object Also known as: hours
41 |
# File 'lib/achoo/extensions.rb', line 41 def hour; self * 3600; end |
#minute ⇒ Object Also known as: minutes
44 |
# File 'lib/achoo/extensions.rb', line 44 def minute; self * 60; end |