diff --git a/grandma.rb b/grandma.rb index 5045e39..f11c509 100644 --- a/grandma.rb +++ b/grandma.rb @@ -11,3 +11,13 @@ # However if you say 'I LOVE YOU GRANDMA!', she should respond with # 'I LOVE YOU TOO PUMPKIN!' + +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!" + else + return "HUH?! SPEAK UP, SONNY!" + end +end \ No newline at end of file