Class: Cloudkeeper::Utils::Filename
- Inherits:
-
Object
- Object
- Cloudkeeper::Utils::Filename
- Defined in:
- lib/cloudkeeper/utils/filename.rb
Constant Summary collapse
- WHITESPACES_REGEXP =
/\s+/
Class Method Summary collapse
Class Method Details
.sanitize(name) ⇒ Object
8 9 10 |
# File 'lib/cloudkeeper/utils/filename.rb', line 8 def self.sanitize(name) Zaru.sanitize!(name).gsub(WHITESPACES_REGEXP, '_') end |