Module: Achoo::UI::Common

Included in:
Commands
Defined in:
lib/achoo/ui/common.rb

Instance Method Summary collapse

Instance Method Details

#confirmObject



8
9
10
11
12
# File 'lib/achoo/ui/common.rb', line 8

def confirm
  answer = Term::ask "Submit? [Y/n]"
  answer.downcase!
  return answer == 'y' || answer == ''
end