Project

General

Profile

Actions

Bug #17560

closed

Does `Module#ruby2_keywords` return `nil` or `self`?

Added by nobu (Nobuyoshi Nakada) about 3 years ago. Updated about 3 years ago.


Description

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_nils.

Which is intentional?

patch to fix code as the doc

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0