Created
June 21, 2010 14:21
-
-
Save ozeias/446909 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def call(*args, &block) | |
evaluate_method(method, *args, &block) if should_run_callback?(*args) | |
rescue LocalJumpError => e | |
puts method.inspect | |
puts args.inspect | |
puts e.backtrace.inspect | |
raise ArgumentError, | |
"Cannot yield from a Proc type filter. The Proc must take two " + | |
"arguments and execute #call on the second argument." | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment