Class: Listen::Compat::Wrapper::Common

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

Overview

“Expected” functionality from any Listen version

Direct Known Subclasses

Test::Fake, Ancient, Current, Old, Stale

Instance Method Summary collapse

Instance Method Details

#listen(*args, &block) ⇒ Object

Run listen continously to monitor changes and gracefully terminate on Ctrl-C



71
72
73
74
75
# File 'lib/listen/compat/wrapper.rb', line 71

def listen(*args, &block)
  _start_and_wait(*args, &block)
rescue Interrupt
  _stop
end