From 96939a163c7fd22144a61d17a71ccf18bf97fc5e Mon Sep 17 00:00:00 2001 From: Michael Waldo Date: Sun, 13 Oct 2019 00:01:51 +0000 Subject: [PATCH] Done. --- grandma.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/grandma.rb b/grandma.rb index 5045e39..2163d8f 100644 --- a/grandma.rb +++ b/grandma.rb @@ -1,3 +1,18 @@ +def speak_to_grandma(phrase) + if phrase == "I LOVE YOU GRANDMA!" + return "I LOVE YOU TOO PUMPKIN!" + elsif phrase == phrase.upcase + return "NO, NOT SINCE 1938!" + elsif phrase != phrase.upcase + return "HUH?! SPEAK UP, SONNY!" + end +end + + + + + + # Write a speak_to_grandma method. # Whatever you say to grandma, she should respond with