Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
Gem.already_loaded?
already_loaded?(file)
lib/rubygems.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/rubygems.rb, line 1278
def already_loaded?(file)
$LOADED_FEATURES.any? do |feature_path|
feature_path.end_with?(file) && default_gem_load_paths.any? {|load_path_entry| feature_path == "#{load_path_entry}/#{file}" }
end
end
No documentation available
See also
.add_to_load_path
.binary_mode
.activated_gem_paths
.bindir
also in
4.1 · 4.0 · 3.4 · 3.2 · 3.1 · 3.0