# File lib/guard/hook.rb, line 52 def hook(event, *args) hook_name = if event.is_a? Symbol calling_method = caller[0][/`([^']*)'/, 1] "#{ calling_method }_#{ event }" else event end.to_sym UI.debug "Hook :#{ hook_name } executed for #{ self.class }" Hook.notify(self.class, hook_name, *args) end