Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
class method
Gem.needs
() { (::Gem::RequestSet) -> void } -> void
needs() { |rs| ... }
lib/rubygems.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems.rb, line 209
def self.needs
rs = Gem::RequestSet.new
yield rs
finish_resolve rs
end
No documentation available
See also
.marshal_version
.open_file
.location_of_caller
.open_file_with_flock
also in
4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0