
20 May
2023
20 May
'23
11:51 a.m.
Issue #19644 has been updated by Eregon (Benoit Daloze). In a module body it's the same. So why do you need it? Isn't it trivially accessible via other ways? ---------------------------------------- Feature #19644: Module::current to complement Module::nesting https://bugs.ruby-lang.org/issues/19644#change-103175 * 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/