Class: Runt::Union

Inherits:
Collection show all
Defined in:
lib/runt/temporalexpression.rb

Overview

Composite TExpr that will be true if any of it’s component expressions are true.

Instance Attribute Summary

Attributes inherited from Collection

#expressions

Instance Method Summary collapse

Methods inherited from Collection

#==, #add, #display, #initialize, #overlap?

Methods included from TExpr

#&, #-, #and, #dates, #minus, #or, #|

Constructor Details

This class inherits a constructor from Runt::Collection

Instance Method Details

#include?(aDate) ⇒ Boolean

Returns:

  • (Boolean)


153
154
155
156
157
158
# File 'lib/runt/temporalexpression.rb', line 153

def include?(aDate)
  @expressions.each do |expr|
    return true if expr.include?(aDate)
  end
  false
end

#to_sObject



160
161
162
# File 'lib/runt/temporalexpression.rb', line 160

def to_s
  super {['every ',' or ']}
end