class Guard::Watcher::Pattern::SimplePath

def initialize(string_or_pathname)

def initialize(string_or_pathname)
  @path = normalize(string_or_pathname)
end

def match(string_or_pathname)

def match(string_or_pathname)
  cleaned = normalize(string_or_pathname)
  return nil unless @path == cleaned
  [cleaned]
end

def normalize(string_or_pathname)

def normalize(string_or_pathname)
  Pathname.new(string_or_pathname).cleanpath.to_s
end