Class: Fixnum
- Inherits:
-
Object
- Object
- Fixnum
- Defined in:
- lib/boatman/ext/fixnum.rb
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
11 12 13 |
# File 'lib/boatman/ext/fixnum.rb', line 11 def days self * 60 * 60 * 24 end |
#hours ⇒ Object Also known as: hour
8 9 10 |
# File 'lib/boatman/ext/fixnum.rb', line 8 def hours self * 60 * 60 end |
#minutes ⇒ Object Also known as: minute
5 6 7 |
# File 'lib/boatman/ext/fixnum.rb', line 5 def minutes self * 60 end |
#seconds ⇒ Object Also known as: second
2 3 4 |
# File 'lib/boatman/ext/fixnum.rb', line 2 def seconds self end |