From 6bd97c7fc73671d818e8f3a081ad768f2c30ba7b Mon Sep 17 00:00:00 2001 From: Ted Nyman Date: Sat, 14 Dec 2013 18:51:34 -0800 Subject: [PATCH] Bit of docs --- lib/linguist/language.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/linguist/language.rb b/lib/linguist/language.rb index 8dc89096..4e118807 100644 --- a/lib/linguist/language.rb +++ b/lib/linguist/language.rb @@ -123,6 +123,7 @@ module Linguist elsif (result = find_by_shebang(data)) && !result.empty? result.first elsif classified = Classifier.classify(Samples::DATA, data, possible_languages.map(&:name)).first + # Return the actual Language object based of the string language name (i.e., first element of `#classify`) Language[classified[0]] end else