Parent

Included Modules

Runt::Diff

TExpr that will be true only if the first of its two contained expressions is true and the second is false.

Attributes

expr1[R]
expr2[R]

Public Class Methods

new(expr1, expr2) click to toggle source
# File lib/runt/temporalexpression.rb, line 176
def initialize(expr1, expr2)
  @expr1 = expr1
  @expr2 = expr2
end

Public Instance Methods

include?(aDate) click to toggle source
# File lib/runt/temporalexpression.rb, line 181
def include?(aDate)
  return false unless (@expr1.include?(aDate) && !@expr2.include?(aDate))
  true
end
to_s() click to toggle source
# File lib/runt/temporalexpression.rb, line 186
def to_s
  @expr1.to_s + ' except for ' + @expr2.to_s
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.