Module | Ruote::Exp::Condition |
In: |
lib/ruote/exp/condition.rb
|
A few helper methods for evaluating :if and :unless expression attributes in process definitions.
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 } |