Class: Numeric

Inherits:
Object
  • Object
show all
Defined in:
lib/forever/extensions.rb

Instance Method Summary collapse

Instance Method Details

#daysObject Also known as: day


14
# File 'lib/forever/extensions.rb', line 14

def days; self * 86400; end

#hoursObject Also known as: hour


11
# File 'lib/forever/extensions.rb', line 11

def hours; self * 3600; end

#minutesObject Also known as: minute


8
# File 'lib/forever/extensions.rb', line 8

def minutes; self * 60; end

#secondsObject Also known as: second


5
# File 'lib/forever/extensions.rb', line 5

def seconds; self; end