From: Robert Klemme Date: 2010-09-24T19:39:53+09:00 Subject: Re: Defining a class without opening an existent one On Thu, Sep 23, 2010 at 9:59 PM, Hagbard Celine wrote: > All of a sudden, the scales fall from my eyes. At first I wasn't so sure > whether I defined a new class or not myself. I looked at the methods of > the class and something made me think that they were the same as > `Array`s. Retrospectively, I don't know what made me think so. Thanks > for your help. Just adding 0.02EUR: creation of a class with the same name as one of the core classes does not seem like a good idea to me - although it's certainly possible. It may cause confusion and it also makes using the core class more cumbersome (you need to reference it as ::Array in the module and nested classes for example). Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/