lib/loader.rb in loader-2.2.3 vs lib/loader.rb in loader-3.0.0
- old
+ new
@@ -1,7 +1,20 @@
#encoding: UTF-8
module Loader
- require 'loader/meta'
- require 'loader/helpers'
- require 'loader/require'
- require 'loader/autoload'
+
+ require 'loader/utils'
+ require 'loader/fetcher'
+ require 'loader/core_ext'
+
+ extend self
+
+ def project_root_folders
+ @project_root_folders ||= []
+ end
+
+ def autoload!(project_root_folder=Loader::Utils.pwd)
+ project_root_folders.push(File.expand_path(project_root_folder))
+ end
+
+ alias autoload autoload!
+
end
\ No newline at end of file