Class: Listen::Compat::Wrapper::Stale

Inherits:
Common
  • Object
show all
Defined in:
lib/listen/compat/wrapper.rb

Overview

>= 2.7.7, <= 2.7.11

Constant Summary collapse

NEXT_VERSION =
Gem::Version.new('2.7.12')

Instance Method Summary collapse

Methods inherited from Common

#listen

Instance Method Details

#_start_and_wait(*args, &block) ⇒ Object

Work around guard/listen#243 (>= v2.7.9, < v2.8.0)



144
145
146
147
148
149
150
151
# File 'lib/listen/compat/wrapper.rb', line 144

def _start_and_wait(*args, &block)
  options = args.pop if args.last.is_a?(Hash)
  listeners = args.map do |dir|
    _listen_module.to(dir, options, &block)
  end
  listeners.map(&:start)
  sleep
end