[#102652] [Ruby master Bug#17664] Behavior of sockets changed in Ruby 3.0 to non-blocking — ciconia@...
Issue #17664 has been reported by ciconia (Sharon Rosner).
23 messages
2021/02/28
[ruby-core:102517] [Ruby master Bug#17560] Does `Module#ruby2_keywords` return `nil` or `self`?
From:
naruse@...
Date:
2021-02-16 04:13:43 UTC
List:
ruby-core #102517
Issue #17560 has been updated by naruse (Yui NARUSE). Backport changed from 2.5: DONTNEED, 2.6: DONTNEED, 2.7: DONE, 3.0: REQUIRED to 2.5: DONTNEED, 2.6: DONTNEED, 2.7: DONE, 3.0: DONE ruby_3_0 38f9c832e812f96fd06ca73688ff2baa528c119c merged revision(s) 49d3830f44031174ad450a0ea1cdcdf0eabf9d0e. ---------------------------------------- Bug #17560: Does `Module#ruby2_keywords` return `nil` or `self`? https://bugs.ruby-lang.org/issues/17560#change-90410 * Author: nobu (Nobuyoshi Nakada) * Status: Closed * Priority: Normal * Assignee: jeremyevans0 (Jeremy Evans) * Backport: 2.5: DONTNEED, 2.6: DONTNEED, 2.7: DONE, 3.0: DONE ---------------------------------------- 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) -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>