- # Extend the default string
- # class for a sanitize method
- class String
- # Disinfects the string and returns it
- # For this, the dump method is used and the
- # quotation marks are cut away at the ends.
- #
- # @return [String]
- def sanitize
- return dump[1...-1]
- end
- end
|