class method
self.new
Ruby on Rails 3.0.20
Since v3.0.20Signature
self.new(root, *paths)
No documentation comment.
Parameters
-
rootreq -
pathsrest
Source
# 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
Defined in railties/lib/rails/paths.rb line 86
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Paths::Path