Class: Omglog::OSX

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

Class Method Summary collapse

Class Method Details

.on_change(&block) ⇒ Object



5
6
7
8
9
10
# File 'lib/osx.rb', line 5

def self.on_change &block
  FSEvent.new.tap {|fsevent|
    fsevent.watch('.git', &block)
    fsevent.run
  }
end