类 Gem::OptionParser::CompletingHash

具有补全搜索功能的哈希。请参阅 Gem::OptionParser::Completion

公共实例方法

match(key) 点击切换源代码

哈希键的 Completion

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