Quoting gabriele renzi <surrender_it / -remove-yahoo.it>:

> > I think it's a good idea to allow `class' to be called from
> within
> > methods if there's a dot after it
> >
> >   class.some_method  # legal
> >   class              # illegal, or rather, creates a new class
>
> +1, but I wonder if this may be a limitation of the parser

You could do it with some work, I think, but it'd make the grammar
even uglier.  self.class only works right now because the 'meth'
in:

 obj.meth

is treated totally differently than 'meth' in:

 meth

Making class.meth another way to write self.class.meth would be a
bit like asking for e.g.:

 [1]

on a line by itself to be an alias for

 self[1]

-mental