Class: Gem::OptionParser::CompletingHash
- Inherits:
 - 
      Hash
      
        
- Object
 - Hash
 - Gem::OptionParser::CompletingHash
 
 
- Includes:
 - Completion
 
- Defined in:
 - lib/rubygems/optparse/lib/optparse.rb
 
Overview
Hash with completion search feature. See Gem::OptionParser::Completion.
Instance Method Summary collapse
- 
  
    
      #match(key)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Completion for hash key.
 
Methods included from Completion
candidate, #candidate, #complete, #convert, regexp
Instance Method Details
#match(key) ⇒ Object
Completion for hash key.
      988 989 990 991 992 993  | 
    
      # File 'lib/rubygems/optparse/lib/optparse.rb', line 988 def match(key) *values = fetch(key) { raise AmbiguousArgument, catch(:ambiguous) {return complete(key)} } return key, *values end  |