billaul/period

View on GitHub
lib/period/has_many/years.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Period
  module HasMany
    # @author Lucas Billaudot <billau_l@modulotech.fr>
    # @note when include this module provide itterable access to the years of
    # the FreePeriod
    module Years
      include Period::HasMany

      def years
        @years ||= itterate(to, Period::Month)
      end
    end
  end
end