Skip to content

Instantly share code, notes, and snippets.

@FerPerales
Created October 13, 2012 13:57
Show Gist options
  • Save FerPerales/3884705 to your computer and use it in GitHub Desktop.
Save FerPerales/3884705 to your computer and use it in GitHub Desktop.
Delimiters
puts %Q/This is the same as a double-quoted string./
puts %Q/This is also the same as a double-quoted string./
puts %q/And this is the same as a single-quoted string/
puts %Q*This is the same as a double-quoted string*
puts %Q!This is also the same as a double-quoted string!
puts %q(And this is the same as a single-quoted string)
puts %Q?This is the same as a double-quoted string?
puts %Q/This is also the same as a double-quoted string./
puts %q/And this is the same as a single-quoted string/
puts %Q#This is the same as a double-quoted string#
puts %Q{This is also the same as a double-quoted string}
puts %q_And this is the same as a single-quoted string_
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment