module Guard
def guard_symbol(guard)
-
(Symbol)- the symbol to catch
Parameters:
-
guard(Guard::Guard) -- the Guard to execute
Other tags:
- See: .run_on_guards -
def guard_symbol(guard) if guard.group.class == Symbol group = groups(guard.group) group.options[:halt_on_fail] ? :no_catch : :task_has_failed else :task_has_failed end end