Project

General

Profile

Actions

Feature #19644

closed

Module::current to complement Module::nesting

Added by bughit (bug hit) about 1 year ago. Updated about 1 year ago.

Status:
Rejected
Assignee:
-
Target version:
-
[ruby-core:113498]

Description

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__)


Related issues 1 (0 open1 closed)

Related to Ruby master - Feature #19682: ability to get a reference to the "default definee" RejectedActions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0