Module Ruote::Exp::Condition
In: lib/ruote/exp/condition.rb

A few helper methods for evaluating :if and :unless expression attributes in process definitions.

Methods

apply?   eval   evl   evl_empty   evl_in   evl_null   evl_set   false?   flatten   flatten_and_compare   parse   true?   unescape  

Classes and Modules

Class Ruote::Exp::Condition::ConditionError

Constants

REGEXES = { 'evl_set' => /^(.+?)( +is)?( +not)?( +set)$/, 'evl_null' => /^(.+?)( +is)?( +not)?( +null)$/, 'evl_empty' => /^(.+[\]}"'])( +is)?( +not)?( +empty)$/, 'evl_in' => /^(.+?)( +is)?( +not)?( +in +)(\[.*\]|\{.*\})$/
COMPARATORS = %w[ == > < != >= <= ].collect { |c| c.to_sym }
KEYWORDS = %w[ call const arglist str ].collect { |w| w.to_sym }

Public Class methods

Evaluates the given [conditional] code string and returns the result.

Note : this is not a full Ruby evaluation !

Returns true if the given conditional string evaluates to false.

Returns true if the given conditional string evaluates to true.

Protected Class methods

[Validate]