Bug #17560
Updated by nobu (Nobuyoshi Nakada) about 4 years ago
The RDoc says that it returns `self`: ``` ruby2_keywords(method_name, ...) -> self ``` This seems consistent with other methods which accept method names, e.g., `public`, `private`, etc. But it actually returns `nil`, and `TestKeywordArguments#test_ruby2_keywords` also has 2 `assert_nil`s. Which is intentional? [patch to fix code as the doc](https://github.com/ruby/ruby/pull/4097)