Module: Guard::Internals::Traps
- Defined in:
- lib/guard/internals/traps.rb
Class Method Summary collapse
Class Method Details
.handle(signal, &block) ⇒ Object
4 5 6 7 |
# File 'lib/guard/internals/traps.rb', line 4 def self.handle(signal, &block) return unless Signal.list.key?(signal) Signal.trap(signal, &block) end |