class Runt::Spec
TExpr that provides for inclusion of an arbitrary date.
Attributes
Public Class Methods
Source
# File lib/runt/temporalexpression.rb, line 198 def initialize(date_expr) @date_expr = date_expr end
Public Instance Methods
Source
# File lib/runt/temporalexpression.rb, line 204 def include?(date_expr) return date_expr.include?(@date_expr) if date_expr.respond_to?(:include?) return true if @date_expr == date_expr false end
Will return true if the supplied object is == to that which was used to create this instance