From: Maksim Bartenev Date: 2006-12-15T00:50:24+09:00 Subject: ------=_Part_150863_16823540.1166111421909 Content-Type: multipart/alternative; boundary="----=_Part_150864_23600495.1166111421909" ------=_Part_150864_23600495.1166111421909 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi! I'm quite new to ruby language. Can anyone please explain why in the attached ruby code the setter methods return their argument instead of the last statement's value, and the string 'weird stuff' gets output only once? I've been using ruby 1.8.4 (2005-12-24) to run this script. Thanks ahead. ------=_Part_150864_23600495.1166111421909 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi!

I'm quite new to ruby language. Can anyone please explain why in the attached ruby code the setter methods return their argument instead of the last statement's value, and the string 'weird stuff' gets output only once?

I've been using ruby 1.8.4 (2005-12-24) to run this script.

Thanks ahead.
------=_Part_150864_23600495.1166111421909-- ------=_Part_150863_16823540.1166111421909 Content-Type: application/x-ruby; name=test.rb Content-Transfer-Encoding: base64 X-Attachment-Id: f_evpd7ehm Content-Disposition: attachment; filename="test.rb" IyEvYmluL3J1YnkKCgpjbGFzcyBUMQogIGRlZiB1CiAgICB0cnVlCiAgZW5kCgogIGRlZiB5CiAg ICBmYWxzZQogIGVuZAplbmQKCmNsYXNzIFQyIDwgVDEKCiAgYWxpYXNfbWV0aG9kIDp1dSwgOnUK CiAgZGVmIHkKICAgIHV1CiAgZW5kCgogIGRlZiB1CiAgICAidGVzdCIKICBlbmQKCmVuZAoKcHV0 cyAiI3tUMi5uZXcueX0gaXMgI3tUMi5uZXcudX0iCgoK ------=_Part_150863_16823540.1166111421909--