Skip to content

Instantly share code, notes, and snippets.

@faheemamir
Forked from nextacademy-private/deaf_aunty.rb
Created November 30, 2015 05:51
Show Gist options
  • Select an option

  • Save faheemamir/a07600145bf828d7a78a to your computer and use it in GitHub Desktop.

Select an option

Save faheemamir/a07600145bf828d7a78a to your computer and use it in GitHub Desktop.
def deaf_aunty(reply)
# while reply != "i am leaving"
# reply = gets
until reply == "i am leaving"
if reply == "i am leaving"
# puts "bye"
exit
elsif reply == reply.downcase
puts "HUH? SPEAK UP SANDRA"
else
puts "NO WE CAN'T DO THAT"
end
reply = gets.chomp
end
end
puts "Morning Aunty. How are you?"
reply = gets.chomp
deaf_aunty(reply)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment