Class: Monolith::BranchFinder

Inherits:
Object
  • Object
show all
Includes:
Finder
Defined in:
lib/monolith/branch_finder.rb

Instance Method Summary collapse

Methods included from Finder

#find_by_name, included

Constructor Details

#initialize(repo) ⇒ BranchFinder

Returns a new instance of BranchFinder.



5
6
7
# File 'lib/monolith/branch_finder.rb', line 5

def initialize(repo)
  @repo = repo
end

Instance Method Details

#allObject



9
10
11
12
13
# File 'lib/monolith/branch_finder.rb', line 9

def all
  unique_branches.map do |branch|
    Branch.new(@repo, branch)
  end
end