Skip to content

Instantly share code, notes, and snippets.

@eqdw
Created January 26, 2013 00:36
Show Gist options
  • Save eqdw/4639230 to your computer and use it in GitHub Desktop.
Save eqdw/4639230 to your computer and use it in GitHub Desktop.
s = "my confirmation is: #{confirmation_choice}"
s = "My confirmation is: "
s << confirmation_choice.to_s
s = "My confirmation is: "
s << confirmation_choice # <=== if it's already a string you probably don't need the to_s
s = <<EOS
My confirmation is:
#{confirmation_choice}
EOS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment