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 Method Summary collapse

Methods inherited from Collection

#add, #initialize

Methods inherited from TExpr

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

Constructor Details

This class inherits a constructor from Runt::Collection

Instance Method Details

#include?(aDate) ⇒ Boolean

Returns:

  • (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_sObject



132
# File 'lib/runt/temporalexpression.rb', line 132

def to_s; "Union:" + @expressions.to_s end