class String

def demodulize

Experimental RBS support (using type sampling data from the type_fusion project).

def demodulize: () -> untyped

This signature was generated using 1 sample from 1 application.

See also +deconstantize+.

See ActiveSupport::Inflector.demodulize.

''.demodulize # => ''
'::Inflections'.demodulize # => "Inflections"
'Inflections'.demodulize # => "Inflections"
'ActiveSupport::Inflector::Inflections'.demodulize # => "Inflections"

Removes the module part from the constant expression in the string.
def demodulize
  ActiveSupport::Inflector.demodulize(self)
end