mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Update docs
This commit is contained in:
@@ -9,8 +9,8 @@ module Linguist
|
|||||||
#
|
#
|
||||||
# Modeline.call(FileBlob.new("path/to/file"))
|
# Modeline.call(FileBlob.new("path/to/file"))
|
||||||
#
|
#
|
||||||
# Returns an Array with one Language if the blob has a shebang with a valid
|
# Returns an Array with one Language if the blob has a Vim or Emacs modeline
|
||||||
# interpreter, or empty if there is no shebang.
|
# that matches a Language name or alias. Returns an empty array if no match.
|
||||||
def self.call(blob, _ = nil)
|
def self.call(blob, _ = nil)
|
||||||
if language = Language.find_by_alias(modeline(blob.data))
|
if language = Language.find_by_alias(modeline(blob.data))
|
||||||
return [language]
|
return [language]
|
||||||
|
|||||||
Reference in New Issue
Block a user