B
Bill Atkins
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
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