Module: ActivePeriod::HasMany::Months

Includes:
ActivePeriod::HasMany
Included in:
FreePeriod, Quarter, Year
Defined in:
lib/active_period/has_many/months.rb

Overview

Note:

when include this module provide itterable access to the months of

the FreePeriod

Author:

  • Lucas Billaudot <billau_l@modulotech.fr>

Instance Method Summary collapse

Instance Method Details

#monthsObject



9
10
11
# File 'lib/active_period/has_many/months.rb', line 9

def months
  @months ||= ActivePeriod::Collection.new(ActivePeriod::Month, self)
end