Ruby operators (highest to lowest precedence)
Method
Operator
Description
Yes
[ ] [ ]=
Element reference, element set
Yes
**
Exponentiation (raise to the power)
Yes
! ~ + -
Not, complement, unary plus and minus (method names for the last two are +@ and -@)
Yes
* / %
Multiply, divide, and modulo
(
Read more... )