Sha256: 935f7b08862c91283f7ddafabaa2c4e55081043e38badbb703b28f834fa74de7
Contents?: true
Size: 412 Bytes
Versions: 1
Compression:
Stored size: 412 Bytes
Contents
# typed: strict module Repeatable module Expression class Weekday < Date sig { params(weekday: Integer).void } def initialize(weekday:) @weekday = weekday end sig { override.params(date: ::Date).returns(T::Boolean) } def include?(date) date.wday == weekday end private sig { returns(Integer) } attr_reader :weekday end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
repeatable-1.1.0 | lib/repeatable/expression/weekday.rb |