Class: ACLS::Loader

Inherits:
Object
  • Object
show all
Defined in:
lib/acls/loader.rb

Class Method Summary collapse

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_optsObject



10
11
12
# File 'lib/acls/loader.rb', line 10

def default_opts
  {root_ns: false, exclude: [], immediate: []}
end