module Zeitwerk::RealModName
Constants
- UNBOUND_METHOD_MODULE_NAME
Public Instance Methods
real_mod_name(mod)
click to toggle source
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.
@param mod [Class, Module] @return [String, nil]
# File lib/zeitwerk/real_mod_name.rb, line 12 def real_mod_name(mod) UNBOUND_METHOD_MODULE_NAME.bind(mod).call end