Class: Numeric

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

Instance Method Summary collapse

Instance Method Details

#daysObject Also known as: day



27
28
29
# File 'lib/herpes/extensions.rb', line 27

def days
	self * 24.hours
end

#hoursObject Also known as: hour



23
24
25
# File 'lib/herpes/extensions.rb', line 23

def hours
	self * 60.minutes
end

#minutesObject Also known as: minute



19
20
21
# File 'lib/herpes/extensions.rb', line 19

def minutes
	self * 60
end

#secondsObject Also known as: second



15
16
17
# File 'lib/herpes/extensions.rb', line 15

def seconds
	self
end