From: Pokkai Dokkai Date: 2007-12-02T14:20:06+09:00 Subject: Re: alias problem Gavin Kistner wrote: > On Dec 1, 4:41 am, Pokkai Dokkai wrote: > Slim2:~ phrogz$ ri private hey please understand my question correctly that is , change public definition(public method) to private definition(private method) by using some ideas.... i want like this (ofcourse below is wrong) ------------------------------------------------- class Cls1 def view puts "from view" end def self.pp alias :private view :public view end end c1=Cls1.new c1.view ----->from view Cls1.pp c1.view ----->undefined method `view' for # (NoMethodError) --------------------------------------------------- -- Posted via http://www.ruby-forum.com/.