Module: Zeitwerk::RealModName
- Included in:
- Cref, ExplicitNamespace, GemLoader, Loader, Loader, Loader::Callbacks, Loader::Config
- Defined in:
- lib/zeitwerk/real_mod_name.rb
Instance Method Summary collapse
-
#real_mod_name(mod) ⇒ Object
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) ⇒ Object
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.
13 14 15 |
# File 'lib/zeitwerk/real_mod_name.rb', line 13 def real_mod_name(mod) UNBOUND_METHOD_MODULE_NAME.bind_call(mod) end |