class Guard::Watcher

def call_action(matches)

Returns:
  • (String) - the final paths

Parameters:
  • matches (String, MatchData) -- the matched path or the match from the
def call_action(matches)
  begin
    @action.arity > 0 ? @action.call(matches) : @action.call
  rescue Exception => e
    ::Guard::UI.error "Problem with watch action!\n#{ e.message }\n\n#{ e.backtrace.join("\n") }"
  end
end