Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
class method
Gem::Specification.find_by_path
find_by_path(path)
lib/rubygems/specification.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/specification.rb, line 994
def self.find_by_path(path)
specification_record.find_by_path(path)
end
Return the best specification that contains the file matching path.
See also
.find_by_name
.find_inactive_by_path
.find_by_full_name
.find_in_unresolved
also in
4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0