class Build::Files::Monitor
def run(options = {}, &block)
def run(options = {}, &block) default_driver = case RUBY_PLATFORM when /linux/i; :inotify when /darwin/i; :fsevent else; :polling end if driver = options.fetch(:driver, default_driver) method_name = "run_with_#{driver}" Files.send(method_name, self, options, &block) end end