Class: MultiGit::RuggedBackend::Tree

Inherits:
Object
  • Object
show all
Includes:
Tree
Defined in:
lib/multi_git/rugged_backend/tree.rb

Instance Attribute Summary

Attributes included from Object

#oid, #repository

Instance Method Summary collapse

Methods included from Tree

#to_builder, #with_parent

Methods included from Object

#bytesize, #content, #to_builder, #to_io

Methods included from Utils::AbstractMethods

#abstract

Methods included from Tree::Base

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

Methods included from Walkable

#walk

Instance Method Details

#raw_entriesObject



11
12
13
14
15
# File 'lib/multi_git/rugged_backend/tree.rb', line 11

def raw_entries
  @raw_entries ||= rugged_object.map do |entry|
    [entry[:name], entry[:filemode], entry[:oid]]
  end
end

#sizeObject



7
8
9
# File 'lib/multi_git/rugged_backend/tree.rb', line 7

def size
  rugged_object.count
end