Skip to content

Commit

Permalink
[rubygems/rubygems] Add missing docs
Browse files Browse the repository at this point in the history
Other analog methods are documented, so document this one too.

rubygems/rubygems@76da34d44d
  • Loading branch information
deivid-rodriguez authored and matzbot committed May 14, 2024
1 parent 91e3871 commit 5628cc1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/rubygems/specification.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1044,6 +1044,10 @@ def self.find_inactive_by_path(path)
stub&.to_spec
end

##
# Return the best specification that contains the file matching +path+, among
# those already activated.

def self.find_active_stub_by_path(path)
stub = @@active_stub_with_requirable_file[path] ||= stubs.find do |s|
s.activated? && s.contains_requirable_file?(path)
Expand Down

0 comments on commit 5628cc1

Please sign in to comment.