class Middleman::CoreExtensions::FileWatcher::API
def run_callbacks(path, callbacks_name)
-
(void)
-
Parameters:
-
callbacks_name
(Symbol
) -- The name of the callbacks method -
path
(Pathname
) -- The file that was changed
def run_callbacks(path, callbacks_name) path = path.to_s send(callbacks_name).each do |callback, matcher| next unless matcher.nil? || path.match(matcher) @app.instance_exec(path, &callback) end end