class Gem::Commands::ContentsCommand

def gem_names # :nodoc:

:nodoc:
def gem_names # :nodoc:
  if options[:all]
    Gem::Specification.map(&:name)
  else
    get_all_gem_names
  end
end