Method: Git::Branches#initialize

Defined in:
lib/git/branches.rb

#initialize(base) ⇒ Branches

Returns a new instance of Branches.



8
9
10
11
12
13
14
15
16
# File 'lib/git/branches.rb', line 8

def initialize(base)
  @branches = {}
  
  @base = base
        
  @base.lib.branches_all.each do |b|
    @branches[b[0]] = Git::Branch.new(@base, b[0])
  end
end