What the ruby actually does for the following statement
"one" << "two" + "three"
is
("one" << "two") + "three"
or
"one" << ("two" + "three")
Does some methods like * that have high priority than others like +, the same as it behaves in mathematic? or just is evaluated from left to right?
+will be first operator. Full operator precedence table can be found here.