In Files

  • rubygems/optparse/lib/optparse.rb

Parent

Methods

Class/Module Index [+]

Quicksearch

Gem::OptionParser::CompletingHash

Hash with completion search feature. See Gem::OptionParser::Completion.

Public Instance Methods

match(key) click to toggle source

Completion for hash key.

 
               # File rubygems/optparse/lib/optparse.rb, line 938
def match(key)
  *values = fetch(key) {
    raise AmbiguousArgument, catch(:ambiguous) {return complete(key)}
  }
  return key, *values
end