From: Sander Land Date: 2006-08-07T04:08:30+09:00 Subject: Re: Singleton methods with method_missing On 8/6/06, Pat Maddox wrote: > I don't have any practical use for this, but I was experimenting a bit. > I just want to create singleton methods on objects of this class. > There's more to come, but this is the part I'm stuck at :) > > This code doesn't actually work, but I think it's close (I hope?) > > When I do this I get "NameError: undefined local variable or method `m' > for #>" so I think it means that m just isn't > in scope for the singleton class. How can I define the singleton > method? Is there any way to use binding here? It is close :) class<