Module: Periods::Modules::MonthlyPeriod::InstanceMethods
- Defined in:
- lib/periods/modules/monthly_period.rb
Instance Method Summary collapse
-
#next ⇒ Object
25.06.2015 => 25.07.2015.
-
#previous ⇒ Object
25.06.2015 => 25.05.2015.
Instance Method Details
#next ⇒ Object
25.06.2015 => 25.07.2015
20 21 22 |
# File 'lib/periods/modules/monthly_period.rb', line 20 def next self.class.for(start_date.next_month) end |
#previous ⇒ Object
25.06.2015 => 25.05.2015
27 28 29 |
# File 'lib/periods/modules/monthly_period.rb', line 27 def previous self.class.for(start_date.prev_month) end |