Class: Integer

Inherits:
Object show all
Defined in:
lib/yake/support/integer.rb

Overview

Integer helpers

Instance Method Summary collapse

Instance Method Details

#daysObject Also known as: day



7
# File 'lib/yake/support/integer.rb', line 7

def days    = hours * 24

#hoursObject Also known as: hour



8
# File 'lib/yake/support/integer.rb', line 8

def hours   = minutes * 60

#minutesObject Also known as: minute



9
# File 'lib/yake/support/integer.rb', line 9

def minutes = seconds * 60

#secondsObject Also known as: second



10
# File 'lib/yake/support/integer.rb', line 10

def seconds = self

#utcObject



11
# File 'lib/yake/support/integer.rb', line 11

def utc     = UTC.at(self)

#weeksObject Also known as: week



6
# File 'lib/yake/support/integer.rb', line 6

def weeks   = days * 7