Class: EnhancedPrompt::Prompt::Token::Git

Inherits:
Object
  • Object
show all
Defined in:
lib/enhanced_prompt/token/git.rb

Instance Method Summary collapse

Constructor Details

#initialize(dir) ⇒ Git

Returns a new instance of Git.



5
6
7
# File 'lib/enhanced_prompt/token/git.rb', line 5

def initialize(dir)
  @dir = dir
end

Instance Method Details

#git(prefix: '(', suffix: ')') ⇒ Object



9
10
11
# File 'lib/enhanced_prompt/token/git.rb', line 9

def git(prefix:'(',suffix:')')
  _call_git_branch
end