[Wtr-general] 'Require' Lots Of Files
Paul Rogers
paul.rogers at shaw.ca
Wed May 30 11:59:56 EDT 2007
actually it seems you have to use it like this
require_files_in_dir( 'c:\*.rb')
----- Original Message -----
From: Paul Rogers <paul.rogers at shaw.ca>
Date: Wednesday, May 30, 2007 9:43 am
Subject: Re: [Wtr-general] 'Require' Lots Of Files
>
> def require_files_in_dir
> ....
> end
>
> require_files_in_dir( 'c:\')
> require_files_in_dir( 'c:\temp')
>
>
>
> ----- Original Message -----
> From: Fletch <forum-watir-users at openqa.org>
> 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 at rubyforge.org
> > http://rubyforge.org/mailman/listinfo/wtr-general
> >
> _______________________________________________
> Wtr-general mailing list
> Wtr-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general
>
More information about the Wtr-general
mailing list