Class: GitConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/gitconfig/highline.rb

Instance Method Summary collapse

Instance Method Details

#ask(desc, default = nil) ⇒ Object



9
10
11
# File 'lib/gitconfig/highline.rb', line 9

def ask(desc, default=nil)
  highline.ask("#{desc}? ") { |q| q.default = default }
end

#highlineObject



5
6
7
# File 'lib/gitconfig/highline.rb', line 5

def highline
  @highline ||= HighLine.new
end