Created
October 28, 2013 00:23
-
-
Save ToreySound/7189578 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user = ARGV.first | |
prompt = '> ' | |
puts "Hi #{user}, I'm the #{$0} script." | |
puts "I'd like to ask you a few questions." | |
puts "Do you like me #{user}?" | |
print prompt | |
likes = STDIN.gets.chomp() | |
puts "Where do you live #{user}?" | |
print prompt | |
lives = STDIN.gets.chomp() | |
puts "What kind of computer do you have?" | |
print prompt | |
computer = STDIN.gets.chomp() | |
puts <<MESSAGE | |
Alright, so you said #{likes} about liking me. | |
You live in #{lives}. Not sure where that is. | |
And you have a #{computer} computer. Nice. | |
MESSAGE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment