From: "Mehr, Assaph (Assaph)" Date: 2004-05-11T11:15:35+09:00 Subject: Re: Unique Object for Each source file That might break a lot of scripts. If I do a top level include that's because I want a top level include. I.e. every object from now on will have that functionality. Any part of a script that is reusuable goes in its own module/class, which prevents this pollution. -----Original Message----- From: Bill Atkins [mailto:dejaspam@batkins.com] Sent: Tuesday, 11 May 2004 4:09 AM To: ruby-talk ML Subject: RCR: Unique Object for Each source file Each Ruby .rb file is currently executed within the class Object. So running "include ModuleX" in your main script file includes the methods of ModuleX into Object globally. This is messy. I propose that each file be executed within a new instance of Object. This way, running include in a file would cause that module to be included only within the scope of that file. Bill