Method: PGit::CurrentBranch#initialize
- Defined in:
- lib/pgit/current_branch.rb
#initialize ⇒ CurrentBranch
Returns a new instance of CurrentBranch.
3 4 5 6 7 |
# File 'lib/pgit/current_branch.rb', line 3 def initialize @branches = `git branch` raise @branches unless current.any? end |