Remove the module namespace of a qualified Ruby class name
You can use
String#demodulize
Show archive.org snapshot
from ActiveSupport:
"ActiveRecord::CoreExtensions::String::Inflections".demodulize # => "Inflections"
"Inflections".demodulize # => "Inflections"