Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Gem::Installer#installed_specs
installed_specs
lib/rubygems/installer.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/installer.rb, line 360
def installed_specs
@installed_specs ||= begin
specs = []
Gem::SpecificationRecord.dirs_from([gem_home]).each do |dir|
Gem::Util.glob_files_in_dir("*.gemspec", dir).each do |path|
spec = Gem::Specification.load path
specs << spec if spec
end
end
specs
end
end
See also
#installation_satisfies_dependency?
#load_plugin
#install
#load_relative_enabled?
also in
4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0