From: George Ogata Date: 2006-12-09T17:55:54+09:00 Subject: Re: openstruct oddity On 12/9/06, George Ogata 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