billaul/period

View on GitHub
lib/period/has_many/months.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 months of
    # the FreePeriod
    module Months
      include Period::HasMany

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