Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/filename_to_slug.rb
Instance Method Summary collapse
Instance Method Details
#filename_to_slug ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/filename_to_slug.rb', line 5 def filename_to_slug s = self.to_url if s.blank? return Digest::MD5.hexdigest(self) end s end |