Class: Numeric
Instance Method Summary collapse
- #days ⇒ Object (also: #day)
- #hours ⇒ Object (also: #hour)
- #minutes ⇒ Object (also: #minute)
Instance Method Details
#days ⇒ Object Also known as: day
162 163 164 |
# File 'lib/support/core_extensions.rb', line 162 def days self * 24.hours end |
#hours ⇒ Object Also known as: hour
157 158 159 |
# File 'lib/support/core_extensions.rb', line 157 def hours self * 3600 end |
#minutes ⇒ Object Also known as: minute
152 153 154 |
# File 'lib/support/core_extensions.rb', line 152 def minutes self * 60 end |