Class: Monolith::BranchFinder
- Inherits:
-
Object
- Object
- Monolith::BranchFinder
- Includes:
- Finder
- Defined in:
- lib/monolith/branch_finder.rb
Instance Method Summary collapse
- #all ⇒ Object
-
#initialize(repo) ⇒ BranchFinder
constructor
A new instance of BranchFinder.
Methods included from Finder
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
#all ⇒ Object
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 |