Skip to content

Instantly share code, notes, and snippets.

@pvdb
Created April 7, 2010 15:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pvdb/359008 to your computer and use it in GitHub Desktop.
Save pvdb/359008 to your computer and use it in GitHub Desktop.
#
# e.g. embedded tab "\t" and newline "\n" characters
#
>> puts 'first\tsecond\tthird'
first\tsecond\tthird
=> nil
>> puts "first\tsecond\tthird"
first second third
=> nil
>> _
#
# e.g. embedded ruby expressions
#
>> today = Date.today
=> #<Date: 4910587/2,0,2299161>
>> puts 'Today is: #{today}'
Today is: #{today}
=> nil
>> puts "Today is: #{today}"
Today is: 2010-04-07
=> nil
>> _
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment