TExpr that provides a thin wrapper around built-in
Ruby Range
functionality facilitating inclusion of an
arbitrary range in a temporal expression.
See also: Range
Will return true if the supplied object is included in the range used to create this instance
# File lib/runt/temporalexpression.rb, line 224 def include?(date_expr) return @date_expr.include?(date_expr) end
Will return true if the supplied object overlaps with the range used to create this instance
# File lib/runt/temporalexpression.rb, line 230 def overlap?(date_expr) @date_expr.each do | interval | return true if date_expr.include?(interval) end false end