Class: FsWatch
- Inherits:
-
FSEvent
- Object
- FSEvent
- FsWatch
- Defined in:
- lib/fs_watch.rb
Instance Attribute Summary collapse
-
#cmd ⇒ Object
Returns the value of attribute cmd.
Instance Method Summary collapse
Instance Attribute Details
#cmd ⇒ Object
Returns the value of attribute cmd.
4 5 6 |
# File 'lib/fs_watch.rb', line 4 def cmd @cmd end |
Instance Method Details
#on_change(directories) ⇒ Object
6 7 8 |
# File 'lib/fs_watch.rb', line 6 def on_change(directories) system self.cmd end |