Sha256: 37a843e70349e4ce37986949f38af7f0848130f8453f0cfd91a8fa435f043d54
Contents?: true
Size: 262 Bytes
Versions: 3
Compression:
Stored size: 262 Bytes
Contents
module Polytrix module StringHelpers module ClassMethods def slugify(*string) string.join('-').downcase.gsub(' ', '_') end end def self.included(base) base.extend(ClassMethods) end include ClassMethods end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
polytrix-0.1.2 | lib/polytrix/core/string_helpers.rb |
polytrix-0.1.1 | lib/polytrix/core/string_helpers.rb |
polytrix-0.1.0 | lib/polytrix/core/string_helpers.rb |