class Repeatable::Expression::Union
Public Class Methods
new(*elements)
click to toggle source
Calls superclass method
Repeatable::Expression::Set::new
# File lib/repeatable/expression/union.rb, line 4 def initialize(*elements) other_unions, not_unions = elements.partition { |e| e.is_a?(self.class) } super(other_unions.flat_map(&:elements) + not_unions) end
Public Instance Methods
include?(date)
click to toggle source
# File lib/repeatable/expression/union.rb, line 9 def include?(date) elements.any? { |e| e.include?(date) } end