Hash with completion search feature. See OptionParser::Completion.
Instance Methods
3.1
View on GitHub
# File tmp/rubies/ruby-3.1.3/lib/optparse.rb, line 938
def match(key)
*values = fetch(key) {
raise AmbiguousArgument, catch(:ambiguous) {return complete(key)}
}
return key, *values
end
Completion for hash key.