Module: MultiGit::Blob

Includes:
Base, Object
Included in:
GitBackend::Blob, JGitBackend::Blob, RuggedBackend::Blob
Defined in:
lib/multi_git/blob.rb

Defined Under Namespace

Modules: Base Classes: Builder

Instance Attribute Summary

Attributes included from Object

#oid, #repository

Instance Method Summary collapse

Methods included from Base

#type

Methods included from Object

#bytesize, #content, #to_io

Methods included from Utils::AbstractMethods

#abstract

Instance Method Details

#to_builderBuilder

Returns:



76
77
78
# File 'lib/multi_git/blob.rb', line 76

def to_builder
  Builder.new(self)
end

#with_parent(parent, name) ⇒ File

Turns the blob into a file using the given parent and filename.

Parameters:

  • parent (Object)
  • name (String)

Returns:



84
85
86
# File 'lib/multi_git/blob.rb', line 84

def with_parent(parent, name)
  File.new(parent, name, self)
end