Wait::SignalRaiser

Public Instance Methods

raise?(exception) click to toggle source
# File lib/raisers/signal.rb, line 3
def raise?(exception)
  signal_exception?(exception.class).tap do |raising|
    log(exception, raising)
  end
end
signal_exception?(klass) click to toggle source

Returns true if an exception raised is a signal exception.

# File lib/raisers/signal.rb, line 10
def signal_exception?(klass)
  [SignalException, Interrupt, NoMemoryError, SystemExit].include?(klass)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.