From: herman_graal@... Date: 2002-01-04T21:46:10+09:00 Subject: [ruby-talk:30209] Shortcut to accessing class constants? Hi, This may be an indication of bad design but in a current project I have a class (C) with a number of constants (B1, B2, ...) that I wan't to access from another class (A). Is there some way to include or extend A with C so that I can write B1 etc directly in A without having to prefix them with C::B1. (The names are much longer in reality and there are lots of them so I think a shortcut would really help readability...) I thought class A include C end would do it since classes are also modules but it doesn't work. Any ideas appreciated! Thanks a lot, Herman Graal -- _______________________________________________ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup 1 cent a minute calls anywhere in the U.S.! http://www.getpennytalk.com/cgi-bin/adforward.cgi?p_key=RG9853KJ&url=http://www.getpennytalk.com