From: Xiangrong Fang Date: 2004-06-07T11:41:50+09:00 Subject: Re: How to use "method_missing"? Hi Guy, On Sun, 6 Jun 2004 19:31:56 +0900 ts wrote: > X> irb(main):001:0> def NilClass.method_missing(m, *a) > > you have defined a singleton method for the object NilClass > I know I defined a singleton method for object a, but I don't quite understand why I am defining a singleton for NilClass, by doing def NilClass.method_missing... Can NilClass be an object name rather than the Class NilClass? If I am defining a singleton method, then, does the OBJECT NilClass has to exist before I define the singleton method? thanks, Shannon