mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Blob not FileBlob
This commit is contained in:
@@ -12,7 +12,7 @@ module Linguist
|
|||||||
# path - A path String (does not necessarily exists on the file system).
|
# path - A path String (does not necessarily exists on the file system).
|
||||||
# content - Content of the file.
|
# content - Content of the file.
|
||||||
#
|
#
|
||||||
# Returns a FileBlob.
|
# Returns a Blob.
|
||||||
def initialize(path, content)
|
def initialize(path, content)
|
||||||
@path = path
|
@path = path
|
||||||
@content = content
|
@content = content
|
||||||
@@ -58,7 +58,7 @@ module Linguist
|
|||||||
|
|
||||||
# Public: Return an array of the file extensions
|
# Public: Return an array of the file extensions
|
||||||
#
|
#
|
||||||
# >> Linguist::FileBlob.new("app/views/things/index.html.erb").extensions
|
# >> Linguist::Blob.new("app/views/things/index.html.erb").extensions
|
||||||
# => [".html.erb", ".erb"]
|
# => [".html.erb", ".erb"]
|
||||||
#
|
#
|
||||||
# Returns an Array
|
# Returns an Array
|
||||||
|
|||||||
Reference in New Issue
Block a user