This commit is contained in:
Vicent Marti
2014-06-26 21:26:26 +02:00
parent 12429b90fe
commit 65eaf98d0b

View File

@@ -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