I’m curious why Ruby’s introspection related method to check if an object responds to a method is respond_to? instead of responds_to?
It always seems awkward to me but maybe that’s because I’m used to respondsToSelector in objective-c.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Matz prefers second person singular or third person plural: