instance method
Gem::SpecificationRecord#find_active_stub_by_path
find_active_stub_by_path(path)
lib/rubygems/specification_record.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/rubygems/specification_record.rb, line 173
def find_active_stub_by_path(path)
stub = @active_stub_with_requirable_file[path] ||= stubs.find do |s|
s.activated? && s.contains_requirable_file?(path)
end || NOT_FOUND
stub.this
end
Return the best specification in the record that contains the file matching path, among those already activated.