class Rprompt::GitBranch
Public Instance Methods
shortBranchName()
click to toggle source
@return [String] branch name
# File lib/rprompt.rb, line 42 def shortBranchName commandResult.chomp.split('/').last end
show()
click to toggle source
@return [String] terminal representation of the branch name
# File lib/rprompt.rb, line 47 def show termShow({:color => color, :symbol => symbol, :content => shortBranchName}) end