RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

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

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in