D
David Teare
Hi all,
I want to require all ruby files from a "lib" directory. This is
what I did so far:
lib_path = File.expand_path(__FILE__ + "/../../lib/")
Dir.new(lib_path).entries.each { |f| require lib_path + '/' + f
if f =~ /.*\.rb/ }
Is there an easier way?
Thanks!
--Dave.
I want to require all ruby files from a "lib" directory. This is
what I did so far:
lib_path = File.expand_path(__FILE__ + "/../../lib/")
Dir.new(lib_path).entries.each { |f| require lib_path + '/' + f
if f =~ /.*\.rb/ }
Is there an easier way?
Thanks!
--Dave.