Sha256: 43b4c12ae4c488b7263b040f33c2829f617e721a43e8a16c6672cd4dc3a224cb

Contents?: true

Size: 282 Bytes

Versions: 9

Compression:

Stored size: 282 Bytes

Contents

require File.dirname(__FILE__) + '/../lib/bind'

paths = [File.dirname(__FILE__) + '/*.rb']
action = lambda { |file| puts "modified #{file.path}" } 
listener = Bind::Listener.new :event => :change, :paths => paths, :interval => 1, :actions => [action], :timeout => 10
listener.run!

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
visionmedia-bind-0.2.0 examples/globbing.rb
visionmedia-bind-0.2.1 examples/globbing.rb
visionmedia-bind-0.2.2 examples/globbing.rb
visionmedia-bind-0.2.4 examples/globbing.rb
visionmedia-bind-0.2.5 examples/globbing.rb
visionmedia-bind-0.2.6 examples/globbing.rb
bind-0.2.8 examples/globbing.rb
bind-0.2.7 examples/globbing.rb
bind-0.2.6 examples/globbing.rb