Class: MultiGit::Directory

Inherits:
TreeEntry show all
Includes:
Base
Defined in:
lib/multi_git/directory.rb

Defined Under Namespace

Modules: Base Classes: Builder

Instance Attribute Summary

Attributes inherited from TreeEntry

#object

Attributes included from TreeEntry::Base

#name, #parent

Attributes included from Object

#oid, #repository

Instance Method Summary collapse

Methods included from Base

#entry, #mode, #size

Methods included from Tree::Base

#==, #each, #entry, #glob, #hash, #key?, #names, #size, #traverse, #type

Methods included from Walkable

#walk

Methods inherited from TreeEntry

#to_builder

Methods included from TreeEntry::Base

#mode, #path, #with_parent

Methods included from Utils::AbstractMethods

#abstract

Methods included from Object

#bytesize, #content, #to_builder, #to_io

Instance Method Details

#entriesHash<String, TreeEntry>

Returns:



102
103
104
105
106
# File 'lib/multi_git/directory.rb', line 102

def entries
  @entries ||= Hash[
    object.map{|entry| [entry.name, entry.with_parent(self) ] }
  ]
end