Module: ActivePeriod::HasMany::Years

Includes:
ActivePeriod::HasMany
Included in:
FreePeriod
Defined in:
lib/active_period/has_many/years.rb

Overview

Note:

when include this module provide itterable access to the years of

the FreePeriod

Author:

  • Lucas Billaudot <billau_l@modulotech.fr>

Instance Method Summary collapse

Instance Method Details

#yearsObject



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

def years
  @years ||= ActivePeriod::Collection.new(ActivePeriod::Year, self)
end