From: mike leonard Date: 2008-03-09T22:44:55+09:00 Subject: Re: A question on singleton methods On Mar 9, 4:29 am, Sebastian Hungerecker wrote: > 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: sep...@jabber.org > ICQ: 205544826 That got it. Thanks to everyone who chimed in to clear that up for me.