From: Matthias Veit Date: 2002-07-02T18:06:14+09:00 Subject: package protected methods Hi, is there a possibility to gain a visibility like java's package protection construct: classes in the same module (or class) can access methods, that are not visible from otside the package. Eg: module A class B protected def foo end end class C def foo B.new.foo end end end A::C.new.foo #no error A::B.new.foo #raise error I don't want to use the send method, so the only solution at the moment is simply to not use the protected modifier. The problem seems to me so common, that there must be a solution I did not realized - but which? Best regads, Matthias _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com