A
aidy
Hi,
Are lazy requires generally a good idea
def require_files(path)
dir = File.dirname(__FILE__)
Dir[File.expand_path("#{dir}/#{path}")].uniq.each do |file|
require file
end
end
?
Thanks
Aidy
Are lazy requires generally a good idea
def require_files(path)
dir = File.dirname(__FILE__)
Dir[File.expand_path("#{dir}/#{path}")].uniq.each do |file|
require file
end
end
?
Thanks
Aidy