class Gem::OptionParser::CompletingHash


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

def match(key)


Completion for hash key.
def match(key)
  *values = fetch(key) {
    raise AmbiguousArgument, catch(:ambiguous) {return complete(key)}
  }
  return key, *values
end