class Listen::Change

Public Instance Methods

change(path, options) click to toggle source
# File lib/dirwait/watch.rb, line 6
def change(path, options)
  return if _silencer.silenced?(path, options[:type])

  if change = options[:change]
    _notify_listener(change, path)
  else
    _file_change(path, options)
    _dir_change(path, options) if options[:type] == "Dir"
  end
end