[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Equivalent of "friend" or package-level access?

Austin Ziegler

9/5/2003 6:44:00 PM

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?

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

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