From: Pit Capitain Date: 2005-01-26T00:07:19+09:00 Subject: Re: top-level object? top-level methods? ts schrieb: >>>>>>"M" == Matt Mower writes: > M> require 'pp' > > Hey, you can't write this :-) > > You must write > > Main.require 'pp' I think the original poster asked why def do_something p "hi" end becomes a private method of Object instead of a singleton method of a top-level object/module called "Main". He didn't want to prefix all Object/Kernel methods with Main. Why should, after the definition above, the following be legal as it is today: Time.send :do_something # => "hi" ("Time" is just an example. You can substitute any other object.) The suggested behavior would be Time.send :do_something # => NoMethodError Main.do_something # => "hi" I like this proposal. Would there be any drawbacks? Regards, Pit