Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Gem::Command#get_all_gem_names
get_all_gem_names
lib/rubygems/command.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/rubygems/command.rb, line 185
def get_all_gem_names
args = options[:args]
if args.nil? || args.empty?
raise Gem::CommandLineError,
"Please specify at least one gem name (e.g. gem build GEMNAME)"
end
args.reject {|arg| arg.start_with?("-") }
end
Get all gem names from the command line.
See also
#execute
#get_all_gem_names_and_versions
#description
#get_one_gem_name
also in
4.1 · 4.0 · 3.4 · 3.2 · 3.1 · 3.0