module Unaccent

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

# sig/unaccent.rbs

module Unaccent
  def unaccent: (String str) -> String
end

def unaccent(str)

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

def unaccent: (String str) -> String

This signature was generated using 21 samples from 1 application.

def unaccent(str)
  return str if str.ascii_only?
  str.gsub(/[^[:ascii:]]/) { |char| ACCENTMAP.fetch(char, char) }
end