Snippets: Ruby Operators

High to low precedence of Ruby operators

Source:
http://migo.sixbit.org/papers/Introduction_to_Ruby/slide-21.html
http://www.meshplex.org/wiki/Ruby/Variables_Datatypes_Operators4

Rule Of Thumb:
Use logical operator for logical statements use logical composition sparingly.

Tags: Scripting / Snippets, Thoughts

——

Comments powered by Disqus

This post talks about: