Class: Vita::Watcher

Inherits:
Object
  • Object
show all
Defined in:
lib/vita/watcher.rb

Instance Method Summary collapse

Constructor Details

#initialize(garden) ⇒ Watcher

Returns a new instance of Watcher.



5
6
7
# File 'lib/vita/watcher.rb', line 5

def initialize(garden)
  @garden = garden
end

Instance Method Details

#watchObject



9
10
11
# File 'lib/vita/watcher.rb', line 9

def watch(&)
  Filewatcher.new(@garden.note_filename_pattern).watch(&)
end