From: Yukihiro Matsumoto Date: 2006-08-22T13:47:11+09:00 Subject: Re: using a module at the toplevel doesn't work Hi, In message "Re: using a module at the toplevel doesn't work" on Tue, 22 Aug 2006 12:40:11 +0900, "Trans" writes: |Well, is there anyway to turn toplevel effects on Object off? I have a |real scenario where it causes issues. | | module X | def self.method_missing( name, *args ) | if name ... | if require 'foo' | send( name, *args ) | ... | |Now if some method is defined at toplevel it can screw up my module X |lazy loader. Can you show me working (well, I mean non-working) example. I am not sure how above example relates to toplevel effects. matz.