Class: Repeatable::Expression::ExactDate
- Defined in:
- lib/repeatable/expression/exact_date.rb
Instance Method Summary collapse
- #include?(other_date) ⇒ Boolean
-
#initialize(date:) ⇒ ExactDate
constructor
A new instance of ExactDate.
Methods inherited from Date
Methods inherited from Base
===, #deconstruct_keys, #difference, #intersection, #to_h, #union
Constructor Details
#initialize(date:) ⇒ ExactDate
Returns a new instance of ExactDate.
7 8 9 |
# File 'lib/repeatable/expression/exact_date.rb', line 7 def initialize(date:) @date = T.let(Conversions::Date(date), ::Date) end |
Instance Method Details
#include?(other_date) ⇒ Boolean
12 13 14 |
# File 'lib/repeatable/expression/exact_date.rb', line 12 def include?(other_date) date == other_date end |