Class: ACLS::Loader
- Inherits:
-
Object
- Object
- ACLS::Loader
- Defined in:
- lib/acls/loader.rb
Class Method Summary collapse
-
.auto(paths, opts = {}) ⇒ Object
Use one or more paths to autoload a set of Ruby source files.
- .default_opts ⇒ Object
Class Method Details
.auto(paths, opts = {}) ⇒ Object
Use one or more paths to autoload a set of Ruby source files.
5 6 7 8 |
# File 'lib/acls/loader.rb', line 5 def auto(paths, opts={}) opts = default_opts.merge(opts) autoload_trees(build_trees(paths, opts), opts) end |
.default_opts ⇒ Object
10 11 12 |
# File 'lib/acls/loader.rb', line 10 def default_opts {root_ns: false, exclude: [], immediate: []} end |