Sha256: b8eb57e30e9d3a148fed4aadc18479ce28cff9207f1bb458b92ce627d2713f53

Contents?: true

Size: 211 Bytes

Versions: 7

Compression:

Stored size: 211 Bytes

Contents

module RRule
  class Yearly < Frequency
    def possible_days
      (0...context.year_length_in_days).to_a
    end

    private

    def advance_by
      { years: context.options[:interval] }
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rrule-0.4.1 lib/rrule/frequencies/yearly.rb
rrule-0.4.0 lib/rrule/frequencies/yearly.rb
rrule-0.3.1 lib/rrule/frequencies/yearly.rb
rrule-0.3.0 lib/rrule/frequencies/yearly.rb
rrule-0.2.1 lib/rrule/frequencies/yearly.rb
rrule-0.1.1 lib/rrule/frequencies/yearly.rb
rrule-0.1.0 lib/rrule/frequencies/yearly.rb