Class: OptionParser::CompletingHash (Ruby 2.3.4)

OptionParser::CompletingHash

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

Public Instance Methods

match(key)

Completion for hash key.

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