End of Life Ruby 3.1 has reached end of life and gets no more fixes. 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.1.3/lib/rubygems/command.rb, line 186
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.select {|arg| arg !~ /^-/ }
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.3 · 3.2 · 3.0