class String
Public Instance Methods
filename_to_slug()
click to toggle source
# 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