class Repeatable::Expression::Weekday

Attributes

weekday[R]

Public Class Methods

new(weekday:) click to toggle source
# File lib/repeatable/expression/weekday.rb, line 7
def initialize(weekday:)
  @weekday = weekday
end

Public Instance Methods

include?(date) click to toggle source
# File lib/repeatable/expression/weekday.rb, line 12
def include?(date)
  date.wday == weekday
end