End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
Gem::Specification.dirs=
dirs=(dirs)
lib/rubygems/specification.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/lib/rubygems/specification.rb, line 974
def self.dirs=(dirs)
self.reset
@@dirs = Array(dirs).map {|dir| File.join dir, "specifications" }
end
Set the directories that Specification uses to find specs. Setting this resets the list of known specs.
See also
.dirs
.each
.default_stubs
.find_active_stub_by_path
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.1 · 3.0