method

clean_text

ruby latest stable - Class: Gem::Text
clean_text(text)
public

Remove any non-printable characters and make the text suitable for printing.