Class: Numeric
- Inherits:
-
Object
- Object
- Numeric
- Defined in:
- lib/conquer/core_ext/numeric.rb
Instance Method Summary collapse
Instance Method Details
#hours ⇒ Object
2 3 4 |
# File 'lib/conquer/core_ext/numeric.rb', line 2 def hours self * 60.minutes end |
#milliseconds ⇒ Object
14 15 16 |
# File 'lib/conquer/core_ext/numeric.rb', line 14 def milliseconds self.to_f / 1000 end |
#minutes ⇒ Object
6 7 8 |
# File 'lib/conquer/core_ext/numeric.rb', line 6 def minutes self * 60.seconds end |
#seconds ⇒ Object
10 11 12 |
# File 'lib/conquer/core_ext/numeric.rb', line 10 def seconds self end |