Sha256: dcbc08a9f87327bafb6bb89d312af4a5f775a4cc289d05226a18d6b20a13bcec
Contents?: true
Size: 747 Bytes
Versions: 2
Compression:
Stored size: 747 Bytes
Contents
### TheStringToSlug Convert text string to slug param Translite, downcase, parameterize #### Install ```ruby gem "the_string_to_slug", "~> 0.0.5" ``` <a href="http://rubygems.org/gems/the_string_to_slug">RubyGems/the_string_to_slug</a> #### Using ```ruby "Привет Мир! Hello world!".to_slug_param # => "privet-mir-hello-world" String.to_slug_param("Привет Мир! Hello world!") # => "privet-mir-hello-world" ``` Be carefully with file extension ```ruby "Документ.doc".to_slug_param # => "dokument-doc" ``` For filenames: ```ruby "/доки/dir/тест/документ.doc".slugged_filename #=> "dokument.doc" String.slugged_filename("/доки/dir/тест/документ.doc") #=> "dokument.doc" ```
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
the_string_to_slug-0.0.8 | README.md |
the_string_to_slug-0.0.7 | README.md |