class Middleman::Sources
def watcher_for_path(types, path)
def watcher_for_path(types, path) watchers.detect { |d| Array(types).include?(d.type) && d.exists?(path) } end
def watcher_for_path(types, path) watchers.detect { |d| Array(types).include?(d.type) && d.exists?(path) } end