Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
class method
Gem::Commands::FetchCommand.new
new
lib/rubygems/commands/fetch_command.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/commands/fetch_command.rb, line 11
def initialize
defaults = {
suggest_alternate: true,
version: Gem::Requirement.default,
}
super "fetch", "Download a gem and place it in the current directory", defaults
add_bulk_threshold_option
add_proxy_option
add_source_option
add_clear_sources_option
add_version_option
add_platform_option
add_prerelease_option
add_option "--[no-]suggestions", "Suggest alternates when gems are not found" do |value, options|
options[:suggest_alternate] = value
end
end
No documentation available