From d9a7ff5678ca673b07baaca80b06833c142ecc89 Mon Sep 17 00:00:00 2001 From: mayerj3 Date: Thu, 6 Jul 2017 16:04:55 -0400 Subject: [PATCH 1/2] Solved --- anagram_detector.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/anagram_detector.rb b/anagram_detector.rb index f67e128..2c443f0 100644 --- a/anagram_detector.rb +++ b/anagram_detector.rb @@ -1,5 +1,6 @@ # Implement this in such a way that when called below, detect_anagram will result in true or false. def canonical(word) + end def detect_anagram(word1, word2) From efd229d5ac82285198b19128c16b68d69ede89ad Mon Sep 17 00:00:00 2001 From: mayerj3 Date: Thu, 6 Jul 2017 16:06:08 -0400 Subject: [PATCH 2/2] Solved --- anagram_detector.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anagram_detector.rb b/anagram_detector.rb index 2c443f0..eb44807 100644 --- a/anagram_detector.rb +++ b/anagram_detector.rb @@ -1,6 +1,6 @@ # Implement this in such a way that when called below, detect_anagram will result in true or false. def canonical(word) - + word.downcase.split(//).sort end def detect_anagram(word1, word2)