Class: 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/optparse.rb |
Overview
Hash with completion search feature. See Completion.
Instance Method Summary
Instance Method Details
#match(key)
Completion for hash key.
# File 'lib/optparse.rb', line 754
def match(key) *values = fetch(key) { raise AmbiguousArgument, catch(:ambiguous) {return complete(key)} } return key, *values end