Class: Integer
Overview
Integer helpers
Instance Method Summary collapse
- #days ⇒ Object (also: #day)
- #hours ⇒ Object (also: #hour)
- #minutes ⇒ Object (also: #minute)
- #seconds ⇒ Object (also: #second)
- #utc ⇒ Object
- #weeks ⇒ Object (also: #week)
Instance Method Details
#days ⇒ Object Also known as: day
7 |
# File 'lib/yake/support/integer.rb', line 7 def days = hours * 24 |
#hours ⇒ Object Also known as: hour
8 |
# File 'lib/yake/support/integer.rb', line 8 def hours = minutes * 60 |
#minutes ⇒ Object Also known as: minute
9 |
# File 'lib/yake/support/integer.rb', line 9 def minutes = seconds * 60 |
#seconds ⇒ Object Also known as: second
10 |
# File 'lib/yake/support/integer.rb', line 10 def seconds = self |
#weeks ⇒ Object Also known as: week
6 |
# File 'lib/yake/support/integer.rb', line 6 def weeks = days * 7 |