Equivalent of "friend" or package-level access?

N

Nathan Weston

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,227
Latest member
Daniella65

Latest Threads

Top