class method
self.new
Ruby on Rails 5.2.8.1
Since v3.0.20Signature
self.new(root, current, paths, options = {})
No documentation comment.
Parameters
-
rootreq -
currentreq -
pathsreq -
optionsopt = {}
Source
# File railties/lib/rails/paths.rb, line 115
def initialize(root, current, paths, options = {})
@paths = paths
@current = current
@root = root
@glob = options[:glob]
options[:autoload_once] ? autoload_once! : skip_autoload_once!
options[:eager_load] ? eager_load! : skip_eager_load!
options[:autoload] ? autoload! : skip_autoload!
options[:load_path] ? load_path! : skip_load_path!
end
Defined in railties/lib/rails/paths.rb line 115
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Paths::Path