From 81f8301288de69980272cb02a414d635388ab710 Mon Sep 17 00:00:00 2001 From: Valerie Shoskes Date: Thu, 12 Jan 2017 15:27:37 -0500 Subject: [PATCH] complete anagram challenge --- anagram_detector.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/anagram_detector.rb b/anagram_detector.rb index f67e128..a426cb6 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) + word.downcase.split('').sort end def detect_anagram(word1, word2)