Fixing up some old MemoryBlob references

This commit is contained in:
Arfon Smith
2015-10-20 12:33:43 +01:00
parent 500ce0959a
commit 83f358976e

View File

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