Top Level Namespace
Defined Under Namespace
Instance Method Summary collapse
-
#texp(&block) ⇒ Object
Evaluate a temporal expression in the TExp environment.
Instance Method Details
#texp(&block) ⇒ Object
Evaluate a temporal expression in the TExp environment. Methods that are not found in the TExp environment will be redirected to the calling environment automatically.
Example:
texp { day(1) * month(:feb) } # Match the first of February (any year)
336 337 338 |
# File 'lib/texp/dsl.rb', line 336 def texp(&block) TExp.evaluate_expression_in_environment(&block) end |