On 11/9/06, Tom Agnew <agnewtj / nospam.net> wrote:

> Here's a trick I use to beautify access to constants:
>
> class Object
>    def my
>      self.class
>    end
> end
>
> ....Now all constants can be accessed with my::Constant.
>
> I find it more readable.  Certainly less typing!

Ah - nice!

martin