Methods

Class Index [+]

Quicksearch

Gem::Commands::ListCommand

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

Public Class Methods

new() click to toggle 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

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

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.