class INotify::Watcher

def close

Raises:
  • (SystemCallError) - if the watch fails to be disabled for some reason
def close
  return if Native.inotify_rm_watch(@notifier.fd, @id) == 0
  raise SystemCallError.new("Failed to stop watching #{path.inspect}", FFI.errno)
end