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

Methods

execute   new  

Public Class methods

[Source]

    # File lib/rubygems/commands/search_command.rb, line 6
 6:   def initialize
 7:     super 'search', 'Display all gems whose name contains STRING'
 8: 
 9:     remove_option '--name-matches'
10:   end

Public Instance methods

[Source]

    # File lib/rubygems/commands/search_command.rb, line 24
24:   def execute
25:     string = get_one_optional_argument
26:     options[:name] = /#{string}/i
27:     super
28:   end

[Validate]