Skip to content

Instantly share code, notes, and snippets.

@mluton
Created August 15, 2012 21:44
Show Gist options
  • Save mluton/3363973 to your computer and use it in GitHub Desktop.
Save mluton/3363973 to your computer and use it in GitHub Desktop.
Remove EOF character from string in Ruby
gsub(/\x0A/, '')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment