Equivalent of "friend" or package-level access?

Discussion in 'Ruby' started by Nathan Weston, Sep 5, 2003.

  1. 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
     
    Nathan Weston, Sep 5, 2003
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jim Cobban
    Replies:
    9
    Views:
    410
    Roedy Green
    Apr 18, 2004
  2. sujee

    package access level problem

    sujee, Apr 1, 2005, in forum: Java
    Replies:
    0
    Views:
    433
    sujee
    Apr 1, 2005
  3. pabbu
    Replies:
    8
    Views:
    732
    Marc Boyer
    Nov 7, 2005
  4. Kaszeta
    Replies:
    0
    Views:
    347
    Kaszeta
    Oct 4, 2007
  5. Peter
    Replies:
    2
    Views:
    278
    Öö Tiib
    Jun 6, 2013
Loading...

Share This Page