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?
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?