Mega Code Archive

 
Categories / Ruby / String
 

Strip the tab and new line characters

"\t\tBye, tabs and line endings!\r\n".strip # => "Bye, tabs and line endings!"