Class: FsWatch

Inherits:
FSEvent
  • Object
show all
Defined in:
lib/fs_watch.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#cmdObject

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