-
Notifications
You must be signed in to change notification settings - Fork 725
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
respond_to? should be instance method #757
Conversation
Could you explain why, and perhaps propose a test to demonstrate how this is broken? |
Currently, it does not break anything, as far as I can tell, if the whenever is to be invoked from commandline. However, in ruby it is always better to have consistent response between method call and the Actually, I currently have one motivation to fix this; I want to query job_list whether the method identifier is available against this class. Consider following snippet:
When executed at top level of this repo, before this fix, it prints:
With this fix, it prints:
Without this fix, I'd have to actually call With this fix, I can determine by just calling P.S. And while I was looking for blogs explaining how respond_to? work, I found we should use So, I've fixed it and pushed it to this PR. |
Hi @Yuki-Inoue . I'd still like to see a test for this. With that and a changelog entry, I'll get this merged right away. |
irb actually has a problem here. Start the irb:
The moment I type the dot in
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Yuki-Inoue can you provide some update on this or @benlangfeld can we close this one out ? 😄
Sorry, recently, I don't have much spare time. |
Thank you for the update @Yuki-Inoue! @benlangfeld let's close this one as well 😄 |
No description provided.