From: Trans Date: 2008-10-23T04:06:08+09:00 Subject: Re: Why ?? On Oct 22, 7:25 am, Sebastian Hungerecker wrote: > Trans wrote: > > The toplevel object (aka 'main') delegates some module-equivalent > > methods to Object class. > > As far as I'm aware it "delegates" only alias, undef, def, module and class. > So it only delegates keywords, not methods. Which is, I assume, why def works > and define_method (which is a method) does not. Good point. I never really looked at like that b/c I tend to think of keywords as syntax sugar for real methods. class -> Class.new def -> define_method alias -> alias_method etc. Conditionals are an exception, of course. But it sort of begs the question, why does it support the one and not the other? T.