From: Sebastian Hungerecker Date: 2008-03-09T18:29:34+09:00 Subject: Re: A question on singleton methods mike leonard wrote: >     def a_hash.fetch(:a).to_s >         "ALPHA" >     end This doesn't work because ruby thinks you want to define a_hash.fetch and is then confused by the symbol in the parameter list. This however will work: def (a_hash.fetch(:a)).to_s "ALPHA" end HTH, Sebastian -- Jabber: sepp2k@jabber.org ICQ: 205544826