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/vendor/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/vendor/optparse/lib/optparse.rb', line 988
def match(key) *values = fetch(key) { raise AmbiguousArgument, catch(:ambiguous) {return complete(key)} } return key, *values end