Parent

Runt::RSpec

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

Public Instance Methods

include?(date_expr) click to toggle source

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
overlap?(date_expr) click to toggle source

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

[Validate]

Generated with the Darkfish Rdoc Generator 2.