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