Require all enabled plugins, disabled plugins are skipped.
# File lib/pry/plugins.rb, line 89 def load_plugins @plugins.each do |plugin| plugin.activate! if plugin.enabled? end end
Find all installed Pry plugins and store them in an internal array.
# File lib/pry/plugins.rb, line 68 def locate_plugins Gem.refresh (Gem::Specification.respond_to?(:each) ? Gem::Specification : Gem.source_index.find_name('')).each do |gem| next if gem.name !~ PRY_PLUGIN_PREFIX plugin_name = gem.name.split('-', 2).last @plugins << Plugin.new(plugin_name, gem.name, gem, true) if !gem_located?(gem.name) end @plugins end
Generated with the Darkfish Rdoc Generator 2.