Class: Gem::OptionParser::CompletingHash
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
Hash
|
|
|
Instance Chain:
self,
Completion,
Hash
|
|
| Inherits: |
Hash
|
| Defined in: | lib/rubygems/optparse/lib/optparse.rb |
Overview
Hash with completion search feature. See Completion.
Instance Method Summary
Instance Method Details
#match(key)
Completion for hash key.
# File 'lib/rubygems/optparse/lib/optparse.rb', line 938
def match(key) *values = fetch(key) { raise AmbiguousArgument, catch(:ambiguous) {return complete(key)} } return key, *values end