X-FeedAbuse: http://nntpfeed.proxad.net/abuse.pl feeded by 88.191.16.109 Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.dougwise.org!nntpfeed.proxad.net!nospam.fr.eu.org!talisker.lacave.net!lacave.net!not-for-mail From: Joel VanderWerf Newsgroups: comp.lang.ruby Subject: Re: Using "class Object" for a project Date: Thu, 19 May 2011 12:58:14 -0500 Organization: Service de news de lacave.net Lines: 25 Message-ID: <4DD55A31.4070205@gmail.com> References: NNTP-Posting-Host: bristol.highgroove.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: talisker.lacave.net 1305829738 45344 65.111.164.187 (19 May 2011 18:28:58 GMT) X-Complaints-To: abuse@lacave.net NNTP-Posting-Date: Thu, 19 May 2011 18:28:58 +0000 (UTC) In-Reply-To: X-Received-From: This message has been automatically forwarded from the ruby-talk mailing list by a gateway at comp.lang.ruby. If it is SPAM, it did not originate at comp.lang.ruby. Please report the original sender, and not us. Thanks! For more details about this gateway, please visit: http://blog.grayproductions.net/categories/the_gateway X-Mail-Count: 383483 X-Ml-Name: ruby-talk X-Rubymirror: Yes X-Ruby-Talk: <4DD55A31.4070205@gmail.com> Xref: x330-a1.tempe.blueboxinc.net comp.lang.ruby:4772 On 05/19/2011 10:21 AM, Markus H. wrote: > - Is there any way to use a class name like "Object" on a per-project > base? Put it in a module? module MyMUD class Object end p Object p ::Object class Foo < Object; end p Foo.ancestors end __END__ Output: MyMUD::Object Object [MyMUD::Foo, MyMUD::Object, Object, Kernel]