From: Phrogz Date: 2007-03-23T01:10:05+09:00 Subject: Re: About class methods visibility (public/private) On Mar 22, 9:51 am, "Phrogz" wrote: > From: Ruby Admirer [mailto:ruby_admi...@yahoo.com] > > > Sent: Thursday, March 22, 2007 9:29 AM > > >John Joyce wrote: > > > >You mean you want Java or C++ or something else. > > >It's Ruby. > > > I don't really understand what you mean. > > Please, read again my post. > > I love Ruby (my pseudo is Ruby Admirer) and public_class_method and > > private_class_method are already parts of Ruby ! > > No, they're not: > C:\>irb > irb(main):001:0> Object.public_class_methods > NoMethodError: undefined method `public_class_methods' for > Object:Class > from (irb):1 > irb(main):002:0> Object.private_class_methods > NoMethodError: undefined method `private_class_methods' for > Object:Class > from (irb):2 My fault, I misread and thought I saw an extra 's' on the end there. Of course Module#public_class_method is included in the core of Ruby. Apologies for the noise.