Class: FakeGit::ListObjects

Inherits:
Object
  • Object
show all
Defined in:
lib/fake_git/list_objects.rb

Instance Method Summary collapse

Instance Method Details

#call(*args) ⇒ Object



4
5
6
7
8
9
10
11
12
13
# File 'lib/fake_git/list_objects.rb', line 4

def call(*args)
  collection = []
  file_names.each do |file|
    pruned = file.gsub(".fakegit/objects/", "")
    index = pruned.split("/").join
    collection << FakeGit::FetchObject.new.call(index)
  end

  collection
end