I have some code that I am debugging that uses this operator and I’m not sure why it is used.
It appears to be appending the object to an array. If that was all I do not know why the engineer didn’t simply use the ‘<<‘ operator. What is the difference?
Thanks!
http://www.tutorialspoint.com/ruby/ruby_operators.htm
it looks like its a bitwise left shift operation and assignment in one.
is the same as