Sha256: 42436f0d8d68002296cb36e1c4d9f82994b17b7fb8e0e02117dd4ba10afa3f43
Contents?: true
Size: 145 Bytes
Versions: 1
Compression:
Stored size: 145 Bytes
Contents
String.class_eval do def slug self.gsub(/('|’)/, '').unicode_normalize(:nfkd).gsub(/[^\x00-\x7F]/n,'').parameterize.to_s end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
slugr-1.1.0 | lib/string.rb |