Module: Periods::Modules::MonthlyPeriod::InstanceMethods

Defined in:
lib/periods/modules/monthly_period.rb

Instance Method Summary collapse

Instance Method Details

#nextObject

25.06.2015 => 25.07.2015



21
22
23
# File 'lib/periods/modules/monthly_period.rb', line 21

def next
  self.class.for(start_date.next_month)
end

#previousObject

25.06.2015 => 25.05.2015



28
29
30
# File 'lib/periods/modules/monthly_period.rb', line 28

def previous
  self.class.for(start_date.prev_month)
end