Class: OptionParser::CompletingHash
- Inherits:
- 
      Hash
      
        - Object
- Hash
- OptionParser::CompletingHash
 
- Includes:
- Completion
- Defined in:
- lib/rubysl/optparse/optparse.rb
Overview
Hash with completion search feature. See OptionParser::Completion.
Instance Method Summary collapse
- 
  
    
      #match(key)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Completion for hash key. 
Methods included from Completion
Instance Method Details
#match(key) ⇒ Object
Completion for hash key.
| 669 670 671 672 673 | # File 'lib/rubysl/optparse/optparse.rb', line 669 def match(key) return key, *fetch(key) { raise AmbiguousArgument, catch(:ambiguous) {return complete(key)} } end |