class OptionParser::CompletingHash - Documentation for Ruby 4.0
Description: class OptionParser::CompletingHash: Hash with completion search feature. Completion.
Keywords: ruby,class,OptionParser::CompletingHash

🔍

No recent searches

# class OptionParser::CompletingHash

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

### Public Instance Methods

match (key)
Source

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

`Completion` for hash key.