Update docs

This commit is contained in:
Arfon Smith
2015-01-26 16:12:20 -06:00
parent 119a8fff1e
commit 20a3e7e4b8

View File

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