method

swapcase

swapcase()
public

Converts characters in the string to the opposite case.

'El Cañón".mb_chars.swapcase.to_s # => "eL cAÑÓN"