Sha256: 31b685a05db3db6a1506719d8966f06f103d8c3ec3d8afee925bbd2fe4c634a6

Contents?: true

Size: 441 Bytes

Versions: 1

Compression:

Stored size: 441 Bytes

Contents

# typed: strict
module Repeatable
  module Expression
    class ExactDate < Date
      sig { params(date: Object).void }
      def initialize(date:)
        @date = T.let(Conversions::Date(date), ::Date)
      end

      sig { override.params(other_date: ::Date).returns(T::Boolean) }
      def include?(other_date)
        date == other_date
      end

      private

      sig { returns(::Date) }
      attr_reader :date
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
repeatable-1.1.0 lib/repeatable/expression/exact_date.rb