Class: Runt::Spec
Overview
TExpr that provides for inclusion of an arbitrary date.
Instance Method Summary collapse
-
#include?(date_expr) ⇒ Boolean
Will return true if the supplied object is == to that which was used to create this instance.
-
#initialize(date_expr) ⇒ Spec
constructor
A new instance of Spec.
- #to_s ⇒ Object
Methods inherited from TExpr
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_s ⇒ Object
182 |
# File 'lib/runt/temporalexpression.rb', line 182 def to_s; "Spec" end |