Skip to content
instance method

Symbol#swapcase

() -> ::Symbol
(:ascii | :lithuanian | :turkic) -> ::Symbol
(:lithuanian, :turkic) -> ::Symbol
(:turkic, :lithuanian) -> ::Symbol
swapcase(mapping) → symbol

Equivalent to sym.to_s.swapcase.to_sym.

See String#swapcase.

See also #succ #to_json #start_with? #to_proc also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0