From 370d8b0cda4b20cb83683b7d38e0feb04210e704 Mon Sep 17 00:00:00 2001 From: Dan Date: Thu, 18 May 2017 14:42:20 -0400 Subject: [PATCH] Added solution --- anagram_detector.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/anagram_detector.rb b/anagram_detector.rb index f67e128..1c9064e 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) + return word.downcase.split('').sort end def detect_anagram(word1, word2)