just saw your other question.. doing def some_method end
def some_other_method end class Foo end class Foo2 end makes the some_method and some_other_method accessable to all - what ruby does is adds them to class Object, which is the super class of everything - you can see this by doing the following in irb def x ; puts 'x'; end Object.instance_methods Paul ----- Original Message ----- From: Fletch <[EMAIL PROTECTED]> Date: Wednesday, May 30, 2007 9:39 am Subject: Re: [Wtr-general] 'Require' Lots Of Files > Thanks for the reply - not to sound silly at all, but where do I > put this method? > > All the require files normally go at the top of the file, but I > have tried putting the code everywhere I can think of and still > have had no luck. > > -- > > require > > className > def test1 > end > def test2 > end > end > > -- > > Ideally it will replace the require, but I can not obviously put a > method up there (can I?). > > Thanks, > > Fletch. > _______________________________________________ > Wtr-general mailing list > Wtr-general@rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-general > _______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general