Sha256: 00353f07211e5c7b65ad5b4742847e211b1a1b953cc5d3cbee28a42896089b82

Contents?: true

Size: 278 Bytes

Versions: 7

Compression:

Stored size: 278 Bytes

Contents

module RRule
  class ByMonth
    def initialize(by_months, context)
      @by_months = by_months
      @context = context
    end

    def reject?(i)
      !by_months.include?(context.month_by_day_of_year[i])
    end

    private

    attr_reader :by_months, :context
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rrule-0.4.1 lib/rrule/filters/by_month.rb
rrule-0.4.0 lib/rrule/filters/by_month.rb
rrule-0.3.1 lib/rrule/filters/by_month.rb
rrule-0.3.0 lib/rrule/filters/by_month.rb
rrule-0.2.1 lib/rrule/filters/by_month.rb
rrule-0.1.1 lib/rrule/filters/by_month.rb
rrule-0.1.0 lib/rrule/filters/by_month.rb