mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Fixing up some old MemoryBlob references
This commit is contained in:
@@ -1,13 +1,13 @@
|
|||||||
require 'linguist/blob_helper'
|
require 'linguist/blob_helper'
|
||||||
|
|
||||||
module Linguist
|
module Linguist
|
||||||
# A MemoryBlob is a wrapper around the content of a file to make it quack
|
# A Blob is a wrapper around the content of a file to make it quack
|
||||||
# like a Grit::Blob. It provides the basic interface: `name`,
|
# like a Grit::Blob. It provides the basic interface: `name`,
|
||||||
# `data`, `path` and `size`.
|
# `data`, `path` and `size`.
|
||||||
class Blob
|
class Blob
|
||||||
include BlobHelper
|
include BlobHelper
|
||||||
|
|
||||||
# Public: Initialize a new MemoryBlob.
|
# Public: Initialize a new Blob.
|
||||||
#
|
#
|
||||||
# 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.
|
||||||
@@ -22,7 +22,7 @@ module Linguist
|
|||||||
#
|
#
|
||||||
# Examples
|
# Examples
|
||||||
#
|
#
|
||||||
# MemoryBlob.new("/path/to/linguist/lib/linguist.rb", "").path
|
# Blob.new("/path/to/linguist/lib/linguist.rb", "").path
|
||||||
# # => "/path/to/linguist/lib/linguist.rb"
|
# # => "/path/to/linguist/lib/linguist.rb"
|
||||||
#
|
#
|
||||||
# Returns a String
|
# Returns a String
|
||||||
|
|||||||
Reference in New Issue
Block a user