From: "Iñaki Baz Castillo" Date: 2008-04-30T22:41:39+09:00 Subject: Re: How to create "def method(item)= (value)" ? 2008/4/30, Phillip Gawlowski : > Sort of. As a singleton method, you get the syntax error. But not if you > define [] as a method: > > irb(main):001:0> def []=(key,value) > irb(main):002:1> end > => nil Yes, but I need "def some_name[]" :) -- Iñaki Baz Castillo