module Periods::Modules::MonthlyPeriod::InstanceMethods
Public Instance Methods
next()
click to toggle source
25.06.2015 => 25.07.2015
# File lib/periods/modules/monthly_period.rb, line 21 def next self.class.for(start_date.next_month) end
previous()
click to toggle source
25.06.2015 => 25.05.2015
# File lib/periods/modules/monthly_period.rb, line 28 def previous self.class.for(start_date.prev_month) end
Private Instance Methods
init_with_date(date)
click to toggle source
# File lib/periods/modules/monthly_period.rb, line 33 def init_with_date(date) init_with_dates(date, date.next_month.prev_day) end