class Repeatable::Expression::Weekday
Attributes
weekday[R]
Public Class Methods
new(weekday:)
click to toggle source
# File lib/repeatable/expression/weekday.rb, line 4 def initialize(weekday:) @weekday = weekday end
Public Instance Methods
include?(date)
click to toggle source
# File lib/repeatable/expression/weekday.rb, line 8 def include?(date) date.wday == weekday end