Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
class method
Gem::SpecificationRecord.dirs_from
dirs_from(paths)
lib/rubygems/specification_record.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/specification_record.rb, line 9
def self.dirs_from(paths)
paths.flat_map do |path|
specifications = File.join(path, "specifications")
[specifications, File.join(specifications, Gem.ruby_abi)]
end
end
Specification directories for each path: the flat specifications dir and the ABI-scoped +specifications/<ruby_abi>+ subdir.