method
new
v3.0.9 -
Show latest stable
- Class:
Rails::Paths::Path
new(root, *paths)public
No documentation available.
# File railties/lib/rails/paths.rb, line 86
def initialize(root, *paths)
options = paths.last.is_a?(::Hash) ? paths.pop : {}
@children = {}
@root = root
@paths = paths.flatten
@glob = options[:glob]
autoload_once! if options[:autoload_once]
eager_load! if options[:eager_load]
autoload! if options[:autoload]
load_path! if options[:load_path]
@root.all_paths << self
end