Sha256: b3c895e622278fc2e1200a7b195da25fab474b55ce823c5ea3b306bf8dc0cd0c

Contents?: true

Size: 143 Bytes

Versions: 1

Compression:

Stored size: 143 Bytes

Contents

String.class_eval do
  
  def slug
    self.gsub(/('|’|\.)/, '').unicode_normalize(:nfkd).gsub(/[^\x00-\x7F]/n,'').parameterize
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
slugr-1.1.2 lib/string.rb