Skip to content

Instantly share code, notes, and snippets.

@zlx
Created September 11, 2012 08:48
Show Gist options
  • Save zlx/3696998 to your computer and use it in GitHub Desktop.
Save zlx/3696998 to your computer and use it in GitHub Desktop.
strip vs squish
[35] pry(main)> " strinsg ".strip
=> "strinsg"
[36] pry(main)> " strinsg ".squish
=> "strinsg"
[37] pry(main)> " strin sg ".strip
=> "strin sg"
[38] pry(main)> " strin sg ".squish
=> "strin sg"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment