class String
def clean
-
(String)
- The cleaned string. -
(String)
- The string with unwanted characters removed.
def clean gsub(/[^-a-zA-Z0-9\s]/, '').strip end
(String)
- The cleaned string.
(String)
- The string with unwanted characters removed.
def clean gsub(/[^-a-zA-Z0-9\s]/, '').strip end