Skip to content

Instantly share code, notes, and snippets.

Created November 1, 2013 15:09
Show Gist options
  • Save anonymous/7266853 to your computer and use it in GitHub Desktop.
Save anonymous/7266853 to your computer and use it in GitHub Desktop.
puts 'Hello there, and what\'s your name?'
name = gets.chomp
puts 'Your name is ' + name + '? What a lovely name!'
puts 'Pleased to meet you, ' + name + '. :)'
@NickClark
Copy link

working for me. Outputs:

Hello there, and what's your name?
nick
Your name is nick? What a lovely name!
Pleased to meet you, nick. :)

@andyrue
Copy link

andyrue commented Nov 1, 2013

Hello there, and what's your name?
Andrew
Your name is Andrew
? What a lovely name!
Pleased to meet you, Andrew
. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment