Sha256: 29d0117b5ae527ca67e2a9a51a16fd5034bff92872a394dc1c2af3a26948d268
Contents?: true
Size: 144 Bytes
Versions: 3
Compression:
Stored size: 144 Bytes
Contents
class String # Return a string that can be used as part of a url def to_url self.downcase.gsub(/[^\-0-9a-z ]/, '').split.join('-') end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rahoulb-rujitsu-0.1.5 | lib/rujitsu/string.rb |
rahoulb-rujitsu-0.1.6 | lib/rujitsu/string.rb |
rahoulb-rujitsu-0.1.7 | lib/rujitsu/string.rb |