Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Support lambda/proc in advice method matchers #11

Open
gcao opened this Issue · 2 comments

1 participant

Guoliang Cao
Guoliang Cao
Owner

Example:

before lambda{target.methods}, :do_this
before proc{target.methods}, :do_this

Guoliang Cao
Owner

We support "target{methods}" already and it is pretty handy. What is the benefit of supporting lambda?

Guoliang Cao
Owner

target{methods} and deferred logic are hard to understand. Wrapping target.methods in a lambda is more explicit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.