Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/postview/extensions.rb

Instance Method Summary collapse

Instance Method Details

#cleanObject

Clean all spaces, non-words and digits.



13
14
15
# File 'lib/postview/extensions.rb', line 13

def clean
  gsub(/[ \W\d]/,'').downcase
end