class Guard::Plugin
def self.add_callback(listener, guard_plugin, events)
-
events(Array) -- the events to register -
guard_plugin(Guard::Plugin) -- the Guard plugin to add the callback -
listener(Block) -- the listener to notify
def self.add_callback(listener, guard_plugin, events) Array(events).each do |event| callbacks[[guard_plugin, event]] << listener end end