Maintenance of Ruby 2.0.0 ended on February 24, 2016. Read more

In Files

  • rubygems/commands/search_command.rb

Class/Module Index [+]

Quicksearch

Gem::Commands::SearchCommand

Public Class Methods

new() click to toggle source
 
               # File rubygems/commands/search_command.rb, line 6
def initialize
  super 'search', 'Display all gems whose name contains STRING'

  remove_option '--name-matches'

  defaults[:domain] = :remote
end
            

Public Instance Methods

execute() click to toggle source
 
               # File rubygems/commands/search_command.rb, line 26
def execute
  string = get_one_optional_argument
  options[:name] = /#{string}/i
  super
end