Sha256: 7e4eecff5c49ffc9aa0e57297538bbaedb81c369567604fefafc109f515daf3d

Contents?: true

Size: 367 Bytes

Versions: 7

Compression:

Stored size: 367 Bytes

Contents

# encoding: utf-8
require 'fedux_org_stdlib/core_ext/string/transliterate'

# String
class String
  # Convert string to characters only
  #
  # This will remove accents and umlauts and other special characters
  #
  # @example Simple Example
  #
  # 'Donald E. Knütz'.characterize
  # #=> 'donald-e-knuth'
  def characterize
    transliterate.parameterize
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
fedux_org-stdlib-0.11.18 lib/fedux_org_stdlib/core_ext/string/characterize.rb
fedux_org-stdlib-0.11.17 lib/fedux_org_stdlib/core_ext/string/characterize.rb
fedux_org-stdlib-0.11.16 lib/fedux_org_stdlib/core_ext/string/characterize.rb
fedux_org-stdlib-0.11.15 lib/fedux_org_stdlib/core_ext/string/characterize.rb
fedux_org-stdlib-0.11.14 lib/fedux_org_stdlib/core_ext/string/characterize.rb
fedux_org-stdlib-0.11.12 lib/fedux_org_stdlib/core_ext/string/characterize.rb
fedux_org-stdlib-0.11.11 lib/fedux_org_stdlib/core_ext/string/characterize.rb