Class Gem::Commands::ListCommand
In: lib/rubygems/commands/list_command.rb
Parent: Gem::Commands::QueryCommand

An alternate to Gem::Commands::QueryCommand that searches for gems starting with the the supplied argument.

Methods

execute   new  

Public Class methods

[Source]

    # File lib/rubygems/commands/list_command.rb, line 10
10:   def initialize
11:     super 'list', 'Display gems whose name starts with STRING'
12: 
13:     remove_option('--name-matches')
14:   end

Public Instance methods

[Source]

    # File lib/rubygems/commands/list_command.rb, line 28
28:   def execute
29:     string = get_one_optional_argument || ''
30:     options[:name] = /^#{string}/i
31:     super
32:   end

[Validate]