Class Gem::Commands::SearchCommand
In: lib/rubygems/commands/search_command.rb
Parent: QueryCommand

Methods

execute   new  

Public Class methods

[Source]

    # File lib/rubygems/commands/search_command.rb, line 9
 9:       def initialize
10:         super(
11:           'search',
12:           'Display all gems whose name contains STRING'
13:         )
14:         remove_option('--name-matches')
15:       end

Public Instance methods

[Source]

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

[Validate]