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
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_s ⇒ Object
160 161 162 |
# File 'lib/runt/temporalexpression.rb', line 160 def to_s super {['every ',' or ']} end |