Class: OptionParser::CompletingHash
- Inherits:
- Hash show all
- Includes:
- Completion
- Defined in:
- lib/optparse.rb
Overview
Hash with completion search feature. See OptionParser::Completion.
Instance Method Summary (collapse)
-
- (Object) match(key)
Completion for hash key.
Methods included from Completion
Methods inherited from Hash
#pretty_print, #pretty_print_cycle
Instance Method Details
- (Object) match(key)
Completion for hash key.
676 677 678 679 680 681 |
# File 'lib/optparse.rb', line 676 def match(key) *values = fetch(key) { raise AmbiguousArgument, catch(:ambiguous) {return complete(key)} } return key, *values end |