# File lib/faraday.rb, line 89 def all_loaded_constants constants.map { |c| const_get(c) }. select { |a| a.respond_to?(:loaded?) && a.loaded? } end
# File lib/faraday.rb, line 72 def autoload_all(prefix, options) if prefix =~ /^faraday(\/|$)/ prefix = File.join(Faraday.root_path, prefix) end options.each do |const_name, path| autoload const_name, File.join(prefix, path) end end
Loads each autoloaded constant. If thread safety is a concern, wrap this in a Mutex.
# File lib/faraday.rb, line 83 def load_autoloaded_constants constants.each do |const| const_get(const) if autoload?(const) end end
[Validate]
Generated with the Darkfish Rdoc Generator 2.