Equivalent of "friend" or package-level access?

I have a group of related classes, and I would like them to have
certain methods which can only be called by classes within the group.
In C++ I would use “friend”, in java I would use the “package” access
modifier. Is there a ruby equivalent?

Nathan

No. You might be able to make it yourself using Ruby meta-programming.

-austin

···

On Sat, 6 Sep 2003 02:30:16 +0900, Nathan Weston wrote:

I have a group of related classes, and I would like them to have certain
methods which can only be called by classes within the group. In C++ I
would use “friend”, in java I would use the “package” access modifier. Is
there a ruby equivalent?


austin ziegler * austin@halostatue.ca * Toronto, ON, Canada
software designer * pragmatic programmer * 2003.09.05
* 14.29.40