RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

wrapr allows you to inject behavior into any existing class

Wrapr allows you to modify the behavior of any instance method (even #initialize) with before, around and after filters. The gem allows you to modify arguments before they reach instance methods and allows you intercept/modify returns. As it was originally developed to wrap Exception to trap/debug specific exceptions deep in business logic, Wrapping a base class wraps all descendant classes.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in