From: Stefan Buhr Date: 2008-07-27T23:02:36+09:00 Subject: "nested" methods Hi there, I want to do this: @myclass.items[5] = an_item But the items object of @myclass should have an custom setter. I have tried this: class Myclass def items def []= value -code- end end end but this does not work. How can i do that? cheers, buhrmi -- Posted via http://www.ruby-forum.com/.