Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 38e55bac61
Fetching contributors…

Cannot retrieve contributors at this time

36 lines (30 sloc) 0.46 kb
class Fixnum
def minutes
self * 60
end
alias :minute :minutes
def hours
self * 60.minutes
end
alias :hour :hours
def days
self * 24.hours
end
alias :day :days
def weeks
self * 7.days
end
alias :week :weeks
def fortnights
self * 2.weeks
end
alias :fortnight :fortnights
def months
self * 30.days
end
alias :month :months
def years
self * 365.days
end
alias :year :years
end
Jump to Line
Something went wrong with that request. Please try again.