mirror of
https://github.com/KevinMidboe/linguist.git
synced 2026-01-24 02:05:31 +00:00
Rename MemoryBlob to Blob
This commit is contained in:
@@ -4,7 +4,7 @@ module Linguist
|
||||
# A MemoryBlob is a wrapper around the content of a file to make it quack
|
||||
# like a Grit::Blob. It provides the basic interface: `name`,
|
||||
# `data`, `path` and `size`.
|
||||
class MemoryBlob
|
||||
class Blob
|
||||
include BlobHelper
|
||||
|
||||
# Public: Initialize a new MemoryBlob.
|
||||
@@ -1,11 +1,11 @@
|
||||
require 'linguist/blob_helper'
|
||||
require 'linguist/memory_blob'
|
||||
require 'linguist/blob'
|
||||
|
||||
module Linguist
|
||||
# A FileBlob is a wrapper around a File object to make it quack
|
||||
# like a Grit::Blob. It provides the basic interface: `name`,
|
||||
# `data`, `path` and `size`.
|
||||
class FileBlob < MemoryBlob
|
||||
class FileBlob < Blob
|
||||
include BlobHelper
|
||||
|
||||
# Public: Initialize a new FileBlob from a path
|
||||
|
||||
Reference in New Issue
Block a user