Skip to content

Instantly share code, notes, and snippets.

@jmoon90
Created November 23, 2013 01:54
Show Gist options
  • Select an option

  • Save jmoon90/7609807 to your computer and use it in GitHub Desktop.

Select an option

Save jmoon90/7609807 to your computer and use it in GitHub Desktop.
def playback(repeat)
if repeat == "Nothing!"
puts "Ok, fine!"
elsif repeat == "I have a lot to say"
puts " don\'t have time for that right now!"
else
puts "You said: #{repeat}"
end
end
puts "What do you want to say?"
print "> "
playback(gets.chomp)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment