Sha256: eba7b0700fdd018581e225ae62ddd88d271fc4a4c90cbf43b78f6fc89a44c27a
Contents?: true
Size: 91 Bytes
Versions: 4
Compression:
Stored size: 91 Bytes
Contents
class String def to_slug self.downcase.strip.gsub(/\s/, '_').gsub(/\W/, '') end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
unitwise-0.2.2 | lib/unitwise/ext/string.rb |
unitwise-0.2.1 | lib/unitwise/ext/string.rb |
unitwise-0.2.0 | lib/unitwise/ext/string.rb |
unitwise-0.1.0 | lib/unitwise/ext/string.rb |