On 12/9/06, George Ogata <george.ogata / gmail.com> wrote: > > Along a similar vein, ruby has the notion of the "current class". > This is like self in that it is defined at any point in your code, but > there's no short identifier for it. In fact, I can't think of a > (non-destructive, thread-safe) expression that will return it. But > this is the class that will gain a new method when you do "def foo". .gsub(/class/, 'module') # :p