pagojo/hammertime — comment on commit 0c54f31fe036f159b7843e5cb00de300264a9b32
File:  line 0
By avdi:

I'm curious, did you try setting a thread-local flag to control the behavior of raise? E.g.:

```ruby
def raise(*args)
if Thread.current[:hammertime_raising]
# original raise, don't continue on
end
Thread.current[:hammertime_raising] = true
# do hammertime stuff
ensure
Thread.current[:hammertime_raising] = false
end
end
```

That seems a little nicer than redefining the method every time, but it's entirely possible I've missed something.