Re: require an entire package?
by Juston other posts by this author
Jul 1 2009 3:58PM messages near this date
Re: require an entire package?
|
Re: require an entire package?
I had tried two or three things really similar but couldn't quite get
it right
#Dir.each("../Modifier") { |mod| require mod}
I wound up using a modified version of your suggestion:
Dir.glob("../Modifier/*/*.rb").each {|modifier| require modifier}
This will save me a lot of time and maintenance, thanks!
Thread:
Juston
Michael Linfield
Michael Linfield
Juston
Gary Chris
David A. Black
|