Ruby 2.4

OptionParser::CompletingHash

class OptionParser::CompletingHash

父类:HashIncluded模块:OptionParser :: Completion

哈希与完成搜索功能。请参阅OptionParser :: Completion。

公共实例方法

match(key) Show source

散列键的完成。

# File lib/optparse.rb, line 898 def match(key) *values = fetch(key) { raise AmbiguousArgument, catch(:ambiguous) {return complete(key)} } return key, *values end