Is there a list anywhere of all ruby operators that can be overridden? (Not the ones that can’t!)
Share
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.
Here’s a table of the Ruby operators.
The ones that are methods and overloadable are:
The table was from the 2001 Pickaxe book, but that’s the same table as in the Ruby 1.9 Pickaxe book — no reason to believe that this set of infix operators will ever change.