Class: MultiGit::TreeEntry Abstract

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
Object, Base
Defined in:
lib/multi_git/tree_entry.rb

Overview

This class is abstract.

A tree entry is a Object or a Builder that knows its parent tree and therefore supports several additional operations.

Direct Known Subclasses

Directory, File, Submodule, Symlink

Defined Under Namespace

Modules: Base Classes: Builder

Instance Attribute Summary collapse

Attributes included from Base

#name, #parent

Attributes included from Object

#oid, #repository

Instance Method Summary collapse

Methods included from Base

#mode, #path, #with_parent

Methods included from Utils::AbstractMethods

#abstract

Methods included from Walkable

#walk

Methods included from Object

#bytesize, #content, #to_io

Instance Attribute Details

#objectMultiGit::Object (readonly)

Returns:



99
100
101
# File 'lib/multi_git/tree_entry.rb', line 99

def object
  @object
end

Instance Method Details

#to_builderObject



108
109
110
# File 'lib/multi_git/tree_entry.rb', line 108

def to_builder
  self.class::Builder.new(parent, name, object)
end