
19 May
2023
19 May
'23
7:19 p.m.
Issue #19644 has been updated by bughit (bug hit). Eregon (Benoit Daloze) wrote in #note-1:
Is `self` not enough? This needs a concrete use case.
`Module::nesting[0]` is the current lexically open module/class, its not `self` ---------------------------------------- Feature #19644: Module::current to complement Module::nesting https://bugs.ruby-lang.org/issues/19644#change-103165 * Author: bughit (bug hit) * Status: Open * Priority: Normal ---------------------------------------- Module::current == Module::nesting[0] but without needlessly walking the entire nesting hierarchy. Could be useful for debugging/logging. It could also be a Kernel global (like __method__) or a keyword (like __FILE__) -- https://bugs.ruby-lang.org/