Module: Listen
- Defined in:
- lib/listen.rb,
lib/listen/adapter.rb,
lib/listen/version.rb,
lib/listen/listener.rb,
lib/listen/adapters/linux.rb,
lib/listen/adapters/darwin.rb,
lib/listen/adapters/polling.rb,
lib/listen/adapters/windows.rb
Defined Under Namespace
Modules: Adapters Classes: Adapter, Listener
Constant Summary collapse
- VERSION =
'0.3.2'
Class Method Summary collapse
-
.to(*args) {|modified, added, removed| ... } ⇒ Listen::Listener
Listen to file system modifications.
Class Method Details
.to(*args) {|modified, added, removed| ... } ⇒ Listen::Listener
Listen to file system modifications.
21 22 23 24 |
# File 'lib/listen.rb', line 21 def self.to(*args, &block) listener = Listener.new(*args, &block) block ? listener.start : listener end |