Class: ContentFS::Slug Private
- Inherits:
-
Object
- Object
- ContentFS::Slug
- Defined in:
- lib/contentfs/slug.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Constant Summary collapse
- SPECIAL_CHARACTER_REGEXP =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
/[^a-zA-Z0-9\-_]*/
Class Method Summary collapse
- .build(value) ⇒ Object private
Class Method Details
.build(value) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
9 10 11 |
# File 'lib/contentfs/slug.rb', line 9 def build(value) value.to_s.gsub(SPECIAL_CHARACTER_REGEXP, "").to_sym end |