Skip to content

Instantly share code, notes, and snippets.

@lamsx2312
Forked from nextacademy-private/deaf_aunty.rb
Last active March 28, 2016 04:30
Show Gist options
  • Select an option

  • Save lamsx2312/f93cddd57aed7a6a0bbc to your computer and use it in GitHub Desktop.

Select an option

Save lamsx2312/f93cddd57aed7a6a0bbc to your computer and use it in GitHub Desktop.
def deaf_aunty
puts "Hi Sandra! Say hi to deaf Aunty :)"
sandra_input = gets.chomp
while sandra_input != "I love you, aunty, but I've got to go."
if sandra_input == sandra_input.upcase
puts "NO, WE CAN'T DO THAT!"
sandra_input = gets.chomp
elsif sandra_input == sandra_input.downcase
puts "HUH?! SPEAK UP, SANDRA"
sandra_input = gets.chomp
else
puts "Bye, Sandra!"
sandra_input = gets.chomp
break
end
end
end
deaf_aunty
deaf_aunty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment