Commands are understood by the cursor, loop and iterator expressions.
TODO : :ignore_workitem / :disallow => 'workitem' thing ?
# File lib/ruote/exp/command.rb, line 40 def get_command (workitem) command, step = workitem['fields'].delete(F_COMMAND) command, step = lookup_attribute_command(workitem) unless command command = 'break' if command == 'over' || command == 'stop' return nil if command == nil if command == 'back' command = 'skip' step = step ? -step : -1 elsif command == 'skip' step ||= 1 end [ command, step ] end
# File lib/ruote/exp/command.rb, line 68 def lookup_att_com (dir, workitem) ATT_COMMANDS.each do |com| c = attribute("#{com}_#{dir}", workitem) || attribute("#{com}-#{dir}", workitem) next unless c c = Condition.true?(c) return [ com, nil ] if (dir == 'if' && c) || (dir == 'unless' && ( ! c)) end nil end
Generated with the Darkfish Rdoc Generator 2.