From: Adam Prescott Date: 2012-03-29T06:24:10+09:00 Subject: [ruby-core:43816] Re: [ruby-trunk - Feature #6219][Open] Return value of Hash#store --e89a8f50397c4f488d04bc543aad Content-Type: text/plain; charset=UTF-8 On Wed, Mar 28, 2012 at 22:18, Adam Prescott wrote: > Assignment always returns the right hand side, so this isn't quite an > accurate demonstration of #store. > Although, I should also mention, this is due to the syntax of assignment here being also a method call, and not simply that #foo= will always return the argument it's given. Or, since it's easier shown than described, what I mean is: X.new.send(:foo=, 10) #=> :nope --e89a8f50397c4f488d04bc543aad Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, Mar 28, 2012 at 22:18, Adam Prescott <adam@aprescott.com> wrote:
=
Assignment always returns the right hand side, so this isn't quite= an accurate demonstration of #store.
Although, I should also mention, this is due to the syntax of assign= ment here being also a method call, and not simply that #foo=3D will always= return the argument it's given.

Or, since it's easier shown than described, what I = mean is:

X.new.send(:foo=3D, 10) #=3D> :nope --e89a8f50397c4f488d04bc543aad--