examples/exception_handler.rb in aspector-0.8.0 vs examples/exception_handler.rb in aspector-0.9.0

- old
+ new

@@ -13,11 +13,11 @@ require 'aspector' class ExceptionHandler < Aspector::Base target do - def handle_exception *args, &block - block.call *args + def handle_exception proxy, *args, &block + proxy.call *args, &block rescue => e puts "Rescued: #{e}" end end