Module: Zeitwerk::RealModName
- Included in:
- ExplicitNamespace, Loader, Loader::Callbacks
- Defined in:
- lib/zeitwerk/real_mod_name.rb
Instance Method Summary collapse
-
#real_mod_name(mod) ⇒ String
Returns the real name of the class or module, as set after the first constant to which it was assigned (or nil).
Instance Method Details
#real_mod_name(mod) ⇒ String
Returns the real name of the class or module, as set after the first constant to which it was assigned (or nil).
The name method can be overridden, hence the indirection in this method.
12 13 14 |
# File 'lib/zeitwerk/real_mod_name.rb', line 12 def real_mod_name(mod) UNBOUND_METHOD_MODULE_NAME.bind(mod).call end |