Method: Cond.find_handler

Defined in:
lib/cond.rb

.find_handler(target) ⇒ Object

Find the closest-matching handler for the given Exception.



112
113
114
# File 'lib/cond.rb', line 112

def find_handler(target)  #:nodoc:
  find_handler_from(handlers_stack.last, target)
end