Sha256: 4137be7c8b69af8efb22646d9685e9381bba9661ed787199a3fe1d48340c6475

Contents?: true

Size: 578 Bytes

Versions: 13

Compression:

Stored size: 578 Bytes

Contents

require 'celluloid'
require 'listen/listener'

module Listen

  # Listens to file system modifications on a either single directory or multiple directories.
  #
  # @param (see Listen::Listener#new)
  #
  # @yield [modified, added, removed] the changed files
  # @yieldparam [Array<String>] modified the list of modified files
  # @yieldparam [Array<String>] added the list of added files
  # @yieldparam [Array<String>] removed the list of removed files
  #
  # @return [Listen::Listener] the listener
  #
  def self.to(*args, &block)
    Listener.new(*args, &block)
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
listen-2.3.1 lib/listen.rb
listen-2.2.0 lib/listen.rb
listen-2.1.2 lib/listen.rb
listen-2.1.1 lib/listen.rb
listen-2.1.0 lib/listen.rb
listen-2.0.4 lib/listen.rb
listen-2.0.3 lib/listen.rb
listen-2.0.2 lib/listen.rb
listen-2.0.1 lib/listen.rb
listen-2.0.0 lib/listen.rb
listen-2.0.0.pre.1 lib/listen.rb
listen-2.0.0.beta.2 lib/listen.rb
listen-2.0.0.beta.1 lib/listen.rb