类 OptionParser::CompletingHash

Hash 具有自动补全搜索功能。参见 OptionParser::Completion.

公共实例方法

match(key) 点击切换源代码

用于哈希键的 Completion.

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