Class: Runt::Union
- Inherits:
-
Collection
- Object
- TExpr
- 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 Method Summary collapse
Methods inherited from Collection
Methods inherited from TExpr
Constructor Details
This class inherits a constructor from Runt::Collection
Instance Method Details
#include?(aDate) ⇒ Boolean
125 126 127 128 129 130 |
# File 'lib/runt/temporalexpression.rb', line 125 def include?(aDate) @expressions.each do |expr| return true if expr.include?(aDate) end false end |
#to_s ⇒ Object
132 |
# File 'lib/runt/temporalexpression.rb', line 132 def to_s; "Union:" + @expressions.to_s end |