Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v2.3.8) is shown here.
parent_name()
public
Returns the name of the module containing this one.
p 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