class Integer
Public Instance Methods
months()
click to toggle source
# File lib/as/duration/core_ext/integer.rb, line 2 def months AS::Duration.new(self * 30*24*60*60, [[:months, self]]) end
Also aliased as: month
years()
click to toggle source
# File lib/as/duration/core_ext/integer.rb, line 7 def years AS::Duration.new(self * 365*24*60*60, [[:years, self]]) end
Also aliased as: year