mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-12-08 12:28:47 +00:00
docs
This commit is contained in:
@@ -92,6 +92,9 @@ module Linguist
|
|||||||
|
|
||||||
# Public: Detects the Language of the blob.
|
# 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.
|
# Returns Language or nil.
|
||||||
def self.detect(blob)
|
def self.detect(blob)
|
||||||
name = blob.name.to_s
|
name = blob.name.to_s
|
||||||
|
|||||||
Reference in New Issue
Block a user