Method: FileWatch::Discoverer#add_path

Defined in:
lib/filewatch/discoverer.rb

#add_path(path) ⇒ Object



23
24
25
26
27
28
# File 'lib/filewatch/discoverer.rb', line 23

def add_path(path)
  return if @watching.member?(path)
  @watching << path
  discover_files_new_path(path)
  self
end