Robert Dober
5/22/2008 3:46:00 PM
On Thu, May 22, 2008 at 5:34 PM, ara.t.howard <ara.t.howard@gmail.com> wrote:
> it's subtle, but there is no such thing as a 'class name', rather there are
> classes that a held in variables, often these variables are constants, but
> not always, and it is true that ruby give you the illusion that they are
> names via a handy Class#name method, but note that this is really just
> inspect and not specific to classes:
Hmm Ara, are you sure?
Is it not the interpreter that "quirks", as I have put it, the name of
a class when it is assigned to a constant, either via
class Klass
but also via
Klass = Class::new
while it quirks it to "" if we do
c = Class::new
I think it is a mess, after reading your metakoan Rubyquiz I should
never ever have used constants to point to classes anymore, I am a
weakling ;)
Cheers
Robert