Reputation: 22064
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?
Upvotes: 0
Views: 93