Module: Periods::Modules::Halfyear::InstanceMethods
- Defined in:
- lib/periods/modules/halfyear.rb
Instance Method Summary collapse
Instance Method Details
#months ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/periods/modules/halfyear.rb', line 16 def months months = [Periods::Month.for(start_date)] 1.upto(5) do |idx| months << Periods::Month.for(start_date.next_month(idx)) end months end |
#quarters ⇒ Object
24 25 26 |
# File 'lib/periods/modules/halfyear.rb', line 24 def quarters [Periods::Quarter.for(start_date), Periods::Quarter.for(start_date.next_month(3))] end |