From: Ilan Berci Date: 2007-12-03T23:56:44+09:00 Subject: Re: Friend functions or classes > > Depending on particular reason, why do you think you have to use the > friend class, I will most probably consider using observer and/or > visitor pattern in stand. irb(main):001:0> class Foo irb(main):002:1> private irb(main):003:1> def cant_see_me irb(main):004:2> "ouch! found me" irb(main):005:2> end irb(main):006:1> end => nil irb(main):007:0> Foo.new.send('cant_see_me') => "ouch! found me" Walking down this path leads to the dark side, the power of the dark side is strong, you will have powers beyond your wildest imagination. -- Posted via http://www.ruby-forum.com/.