parent_name()
public
Returns the name of the module containing this one.
M::N.parent_name
# File activesupport/lib/active_support/core_ext/module/introspection.rb, line 9
def parent_name
if defined?(@parent_name)
@parent_name
else
parent_name = name =~ /::[^:]+\Z/ ? $`.freeze : nil
@parent_name = parent_name unless frozen?
parent_name
end
end