Class: Fixnum
- Inherits:
-
Object
- Object
- Fixnum
- Defined in:
- lib/orion/orion_objects/fixnum.rb
Instance Method Summary collapse
- #days ⇒ Object (also: #day)
- #hours ⇒ Object (also: #hour)
- #minutes ⇒ Object (also: #minute)
- #months ⇒ Object (also: #month)
- #seconds ⇒ Object (also: #second)
- #weeks ⇒ Object (also: #week)
- #years ⇒ Object (also: #year)
Instance Method Details
#days ⇒ Object Also known as: day
14 15 16 |
# File 'lib/orion/orion_objects/fixnum.rb', line 14 def days self * 24.hours end |
#hours ⇒ Object Also known as: hour
10 11 12 |
# File 'lib/orion/orion_objects/fixnum.rb', line 10 def hours self * 60.minutes end |
#minutes ⇒ Object Also known as: minute
6 7 8 |
# File 'lib/orion/orion_objects/fixnum.rb', line 6 def minutes self * 60.seconds end |
#months ⇒ Object Also known as: month
22 23 24 |
# File 'lib/orion/orion_objects/fixnum.rb', line 22 def months self * 4.weeks end |
#seconds ⇒ Object Also known as: second
2 3 4 |
# File 'lib/orion/orion_objects/fixnum.rb', line 2 def seconds self end |
#weeks ⇒ Object Also known as: week
18 19 20 |
# File 'lib/orion/orion_objects/fixnum.rb', line 18 def weeks self * 7.days end |
#years ⇒ Object Also known as: year
26 27 28 |
# File 'lib/orion/orion_objects/fixnum.rb', line 26 def years self * 12.months end |