class FseventsToVm::PathFilter

Public Class Methods

new() click to toggle source
# File lib/fsevents_to_vm/path_filter.rb, line 3
def initialize
  @filter = %r{#{ENV['HOME']}/(Library|\.)|/\.(git|hg|svn)/}
end

Public Instance Methods

ignore?(event) click to toggle source
# File lib/fsevents_to_vm/path_filter.rb, line 7
def ignore?(event)
  !!@filter.match(event.path)
end