Class: Vita::Watcher
- Inherits:
-
Object
- Object
- Vita::Watcher
- Defined in:
- lib/vita/watcher.rb
Instance Method Summary collapse
-
#initialize(garden) ⇒ Watcher
constructor
A new instance of Watcher.
- #watch ⇒ Object
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
#watch ⇒ Object
9 10 11 |
# File 'lib/vita/watcher.rb', line 9 def watch(&) Filewatcher.new(@garden.note_filename_pattern).watch(&) end |