Method: Gem::Commands::QueryCommand#initialize
- Defined in:
- lib/rubygems/commands/query_command.rb
#initialize(name = "query", summary = "Query gem information in local or remote repositories") ⇒ QueryCommand
Returns a new instance of QueryCommand.
21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/rubygems/commands/query_command.rb', line 21 def initialize(name = "query", summary = "Query gem information in local or remote repositories") super name, summary, domain: :local, details: false, versions: true, installed: nil, version: Gem::Requirement.default add_option("-n", "--name-matches REGEXP", "Name of gem(s) to query on matches the", "provided REGEXP") do |value, | [:name] = /#{value}/i end end |