Assignment-like methods and the returned value (in Ruby)
An assignment-like method in Ruby always return the Right-Hand Side of the method (the parameter) and never the result of the method. I’ve learnt this the hard way.
http://jeremy.wordpress.com/2010/09/03/assignment-like-methods-and-the-returned-value-in-ruby/
Post a comment