Skip to content

Instantly share code, notes, and snippets.

@ozeias
Created June 21, 2010 14:21
Show Gist options
  • Save ozeias/446909 to your computer and use it in GitHub Desktop.
Save ozeias/446909 to your computer and use it in GitHub Desktop.
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