Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.ruby > #4772
| From | Joel VanderWerf <joelvanderwerf@gmail.com> |
|---|---|
| Newsgroups | comp.lang.ruby |
| Subject | Re: Using "class Object" for a project |
| Date | 2011-05-19 12:58 -0500 |
| Organization | Service de news de lacave.net |
| Message-ID | <4DD55A31.4070205@gmail.com> (permalink) |
| References | <a758af90f801ff5df85c80e0f184f560@ruby-forum.com> |
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]
Back to comp.lang.ruby | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Using "class Object" for a project "Markus H." <shevegen@gmail.com> - 2011-05-19 12:21 -0500
Re: Using "class Object" for a project Joel VanderWerf <joelvanderwerf@gmail.com> - 2011-05-19 12:58 -0500
Re: Using "class Object" for a project 7stud -- <bbxx789_05ss@yahoo.com> - 2011-05-19 12:37 -0500
Re: Using "class Object" for a project Robert Dober <robert.dober@gmail.com> - 2011-05-19 13:50 -0500
Re: Using "class Object" for a project Phillip Gawlowski <cmdjackryan@googlemail.com> - 2011-05-19 15:05 -0500
csiph-web