diff --git a/grandma.rb b/grandma.rb index 5045e39..a6adeb7 100644 --- a/grandma.rb +++ b/grandma.rb @@ -1,5 +1,19 @@ # Write a speak_to_grandma method. +def speak_to_grandma(phrase) + my_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 + my_phrase +end + + # Whatever you say to grandma, she should respond with # HUH?! SPEAK UP, SONNY! # unless you shout it (type in all capitals).