From: Andrew Walrond Date: 2005-04-02T08:41:55+09:00 Subject: Re: Kernel.load() behaviour On Saturday 02 April 2005 00:34, Andrew Walrond wrote: > My final solution, taking the above into account: > > c.rb > class Glibc > end > > b.rb > inline 'c.rb' > > class Gcc > end > > a.rb > module Packages > def Packages.inline(filename) > eval(IO.readlines(filename).join,nil,filename) > end > inline('c.rb') > end > > Packages::Gcc.new > Packages::Glibc.new > My final puzzle before sleep; How to throw an exception if any of the package files try to use require() or load() instead of inline() ? (My package developers might forget and pollute the global namespace) Is there a neat way? Andrew