Module: Polytrix::StringHelpers::ClassMethods
- Included in:
- Polytrix::StringHelpers
- Defined in:
- lib/polytrix/core/string_helpers.rb
Instance Method Summary collapse
Instance Method Details
#slugify(*string) ⇒ Object
4 5 6 |
# File 'lib/polytrix/core/string_helpers.rb', line 4 def slugify(*string) string.join('-').downcase.gsub(' ', '_') end |