Sha256: 95139932fbdd763fc3d032791a724f42c393f75b43590a9149d50cf152f81155
Contents?: true
Size: 435 Bytes
Versions: 6
Compression:
Stored size: 435 Bytes
Contents
require 'faster_rubygems' require 'event_hook' class Demo < EventHook def self.process(*args) # args => [64, #<RuntimeError: hello>, :initialize, Exception] begin if args[1].is_a? Exception puts args.inspect end rescue # fantastically, this check fails within rails at times end end end Demo.start_hook # TODO 1.9 compat #set_trace_func proc {|*args| puts args.inspect }
Version data entries
6 entries across 6 versions & 1 rubygems