Sha256: de29eef9178dce403bc0de948fc81575849cc36f078442b6ea2f6782ce2b8e85
Contents?: true
Size: 159 Bytes
Versions: 4
Compression:
Stored size: 159 Bytes
Contents
class String # Transform the current string into a permalink. def to_permalink self.gsub(/\W+/, ' ').strip.downcase.titleize.gsub(/\ +/, '_') end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
talia_core-0.4.3 | lib/core_ext/string.rb |
talia_core-0.4.2 | lib/core_ext/string.rb |
talia_core-0.4.1 | lib/core_ext/string.rb |
talia_core-0.4.0 | lib/core_ext/string.rb |