From 65eaf98d0badbb5f6012f9d5bf947e418e28f9a0 Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Thu, 26 Jun 2014 21:26:26 +0200 Subject: [PATCH] docs --- lib/linguist/language.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/linguist/language.rb b/lib/linguist/language.rb index ffbecb7b..ed9b68e9 100644 --- a/lib/linguist/language.rb +++ b/lib/linguist/language.rb @@ -92,6 +92,9 @@ module Linguist # Public: Detects the Language of the blob. # + # blob - an object that implements the Linguist `Blob` interface; + # see Linguist::LazyBlob and Linguist::FileBlob for examples + # # Returns Language or nil. def self.detect(blob) name = blob.name.to_s