mercredi 29 avril 2015

Can we override operators in Ruby?

in a case...such as

(10 + 20) * 10
=> 300

the expression fragment enclosed in parentheses is evaluated before the higher precedence multiplication.So does it applies to other operators as well.Can i override other operators such as << !...etc

Aucun commentaire:

Enregistrer un commentaire