Actions
Bug #17560
closedDoes `Module#ruby2_keywords` return `nil` or `self`?
Bug #17560:
Does `Module#ruby2_keywords` return `nil` or `self`?
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?
Actions