ri 中记录的关键字方法参数在哪里?

Where are the keyword method arguments documented in ri?

当我想用双拼音等获取额外的参数时,我经常忘记较新的关键字参数的语法。在线 Ruby 文档包含诸如 http://ruby-doc.org/core-2.1.0/doc/syntax/methods_rdoc.html and http://ruby-doc.org/core-2.0.0/doc/syntax/calling_methods_rdoc.html 之类的文章,但我如何通过 ri 访问此信息?

或者 ri(如交互模式的问题 "Enter the method name you want to look up" 所暗示)它会找到的唯一一类东西吗?

任何帮助或见解将不胜感激。

您可以通过以下方式访问静态页面:

$ ri ruby:syntax/methods

输出:

= Methods

Methods implement the functionality of your program.  Here is a simple method
definition:

  def one_plus_one
    1 + 1
  end

A method definition consists of the def keyword, a method name, the body of
the method, return value and the end keyword.  When called the method will
execute the body of the method.  This method returns 2.

This section only covers defining methods.  See also the {syntax documentation
on calling methods}[rdoc-ref:syntax/calling_methods.rdoc].

[...]