[#101179] Spectre Mitigations — Amel <amel.smajic@...>
Hi there!
5 messages
2020/12/01
[#101694] Ruby 3.0.0 Released — "NARUSE, Yui" <naruse@...>
V2UgYXJlIHBsZWFzZWQgdG8gYW5ub3VuY2UgdGhlIHJlbGVhc2Ugb2YgUnVieSAzLjAuMC4gRnJv
4 messages
2020/12/25
[ruby-core:101294] [Ruby master Bug#17374] Refined methods aren't visible from a refinement's module
From:
marcandre-ruby-core@...
Date:
2020-12-07 21:06:21 UTC
List:
ruby-core #101294
Issue #17374 has been updated by marcandre (Marc-Andre Lafortune). jeremyevans0 (Jeremy Evans) wrote in #note-6: > This is because `refine` implicitly activates the refinement, so the refinement is active at the point `bar` is called. This approach works back to Ruby 2.0, with output: > > ``` > :none > :none > 42 > ``` Thanks for trying it out. This is not the desired output, though. The last `using` has no effect. Desired output is: ``` :none # No refinement active yet 42 # using was activated 42 # extend works too (assuming the `using` part is commented out... ``` My understanding is that the `refine` simply has no effect, since the module is empty at that point, no? ---------------------------------------- Bug #17374: Refined methods aren't visible from a refinement's module https://bugs.ruby-lang.org/issues/17374#change-88978 * Author: marcandre (Marc-Andre Lafortune) * Status: Open * Priority: Normal * Assignee: shugo (Shugo Maeda) * Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN ---------------------------------------- -- 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>