Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Gem::SpecificationRecord#map_stubs
map_stubs(pattern) { |path, base_dir, gems_dir| ... }
lib/rubygems/specification_record.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/specification_record.rb, line 255
def map_stubs(pattern)
@dirs.flat_map do |dir|
base_dir = File.dirname dir
base_dir = File.dirname base_dir if self.class.abi_scoped_spec_dir?(dir)
gems_dir = File.join base_dir, "gems"
Gem::Specification.gemspec_stubs_in(dir, pattern) {|path| yield path, base_dir, gems_dir }
end
end
No documentation available