Class: Runt::Union
- Inherits:
-
Collection
- Object
- Collection
- Runt::Union
- 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
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
139 140 141 142 143 144 |
# File 'lib/runt/temporalexpression.rb', line 139 def include?(aDate) @expressions.each do |expr| return true if expr.include?(aDate) end false end |
#to_s ⇒ Object
146 147 148 |
# File 'lib/runt/temporalexpression.rb', line 146 def to_s super {['every ',' or ']} end |