Sha256: a440ebdb3ba8407148fe971f30569376b6326b091fcccb1a1897c6254276fb3c
Contents?: true
Size: 325 Bytes
Versions: 3
Compression:
Stored size: 325 Bytes
Contents
module Repeatable module Expression class Weekday < Base def initialize(weekday:) @weekday = weekday end def include?(date) date.wday == weekday end def to_h { weekday: { weekday: weekday } } end private attr_reader :weekday end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
repeatable-0.3.0 | lib/repeatable/expression/weekday.rb |
repeatable-0.2.1 | lib/repeatable/expression/weekday.rb |
repeatable-0.2.0 | lib/repeatable/expression/weekday.rb |