On Sun, 2006-10-22 at 18:21 +0900, Dirk L├╝sebrink wrote:
> unknown wrote:
> > Hi,
> > In the following code, how can I call "Hello.jane" method?
> > 
> > class Hello
> >   def Hello.jane
> >     puts "I am jane"
> >   end
> >   private_class_method :jane
> > end
> 
> 
> Hello.send :jane
> 
> will work, send also works with private methods.

I believe that will fail under 1.9 though, where send no longer calls
private methods. IIRC the method you'll need there is 'funcall' instead
of 'send'.

-- 
Ross Bamford - rosco / roscopeco.REMOVE.co.uk