In Files

  • ruby-3.1.2/lib/optparse.rb

Parent

Methods

Included Modules

Files

Class/Module Index [+]

Quicksearch

OptionParser::CompletingHash

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

Public Instance Methods

match(key) click to toggle source

Completion for hash key.

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