14 15 16
# File 'lib/ext/ext.rb', line 14 def humanize self.capitalize.gsub(/[-_]+/, ' ') end
10 11 12
# File 'lib/ext/ext.rb', line 10 def slugize self.downcase.gsub(/&/, 'and').gsub(/\s+/, '-').gsub(/[^a-z0-9-]/, '') end