Class: Repeatable::Expression::Union
- Defined in:
- lib/repeatable/expression/union.rb
Instance Method Summary collapse
Methods inherited from Set
#<<, #==, #initialize, #to_h
Methods inherited from Base
===, #difference, #intersection, #to_h, #union
Constructor Details
This class inherits a constructor from Repeatable::Expression::Set
Instance Method Details
#include?(date) ⇒ Boolean
4 5 6 |
# File 'lib/repeatable/expression/union.rb', line 4 def include?(date) elements.any? { |e| e.include?(date) } end |