Class: RRule::ByWeekDay
- Inherits:
-
Object
- Object
- RRule::ByWeekDay
- Defined in:
- lib/rrule/filters/by_week_day.rb
Instance Method Summary collapse
-
#initialize(weekdays, context) ⇒ ByWeekDay
constructor
A new instance of ByWeekDay.
- #reject?(i) ⇒ Boolean
Constructor Details
#initialize(weekdays, context) ⇒ ByWeekDay
Returns a new instance of 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 |