Class: RRule::ByWeekDay

Inherits:
Object
  • Object
show all
Defined in:
lib/rrule/filters/by_week_day.rb

Instance Method Summary collapse

Constructor Details

#initialize(weekdays, context) ⇒ ByWeekDay



5
6
7
8
# File 'lib/rrule/filters/by_week_day.rb', line 5

def initialize(weekdays, context)
  @by_week_days = weekdays.map(&:index)
  @context = context
end

Instance Method Details

#reject?(i) ⇒ Boolean



10
11
12
# File 'lib/rrule/filters/by_week_day.rb', line 10

def reject?(i)
  masked?(i) && !matches_by_week_days?(i)
end