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 7
def parent_name
unless defined? @parent_name
@parent_name = name =~ /::[^:]+\Z/ ? $`.freeze : nil
end
@parent_name
end