method

swapcase!

ruby latest stable - Class: String
swapcase!(*args)
public

Equivalent to String#swapcase, but modifies the receiver in place, returning str, or nil if no changes were made.

See String#downcase for meaning of options and use with different encodings.