-
-
Notifications
You must be signed in to change notification settings - Fork 925
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kernel#__method__ within a proc returns incorrect value after method definition #2212
Comments
working as expected in JRuby 9.1.16 (and likely earlier releases as well) :
|
@kares, I believe this is still working incorrectly, as the following should print
|
@gdeoliveira right, have misread what is expected and what is JRuby behavior ... let's have it open than |
Likely an issue with how the |
I pushed a PR that fixes this. Needs specs for the given case and for |
When defining more than one method within a class using a proc that returns
__method__
all methods will return the symbol representing the last defined method:Casting
DEFINITION
into a code block during the method's definition seems to be working correctly though:A lengthier description of the problem can be found at this post in Stack Overflow.
The text was updated successfully, but these errors were encountered: