# File lib/active_support/dependencies/autoload.rb, line 11 def autoload(const_name, path = @@at_path) full = [self.name, @@under_path, const_name.to_s, path].compact.join("::") location = path || Inflector.underscore(full) if @@eager_autoload @@autoloads[const_name] = location end super const_name, location end
# File lib/active_support/dependencies/autoload.rb, line 28 def autoload_at(path) @@at_path, old_path = path, @@at_path yield ensure @@at_path = old_path end
# File lib/active_support/dependencies/autoload.rb, line 21 def autoload_under(path) @@under_path, old_path = path, @@under_path yield ensure @@under_path = old_path end
Generated with the Darkfish Rdoc Generator 2.