Class: Runt::Spec

Inherits:
TExpr
  • Object
show all
Defined in:
lib/runt/temporalexpression.rb

Overview

TExpr that provides for inclusion of an arbitrary date.

Instance Method Summary collapse

Methods inherited from TExpr

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

Constructor Details

#initialize(date_expr) ⇒ Spec



171
172
173
# File 'lib/runt/temporalexpression.rb', line 171

def initialize(date_expr)
  @date_expr = date_expr
end

Instance Method Details

#include?(date_expr) ⇒ Boolean

Will return true if the supplied object is == to that which was used to create this instance



177
178
179
180
# File 'lib/runt/temporalexpression.rb', line 177

def include?(date_expr)
  return true if @date_expr == date_expr
  false
end

#to_sObject



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

def to_s; "Spec" end