Class: DeleteProjectScreen
Instance Method Summary
collapse
Methods inherited from Screen
#initialize
Constructor Details
This class inherits a constructor from Screen
Instance Method Details
#handle_menu ⇒ Object
246
247
248
249
250
251
252
253
254
255
|
# File 'lib/kale/ui.rb', line 246
def handle_menu
answer = gets.chomp
if answer == "1"
@@project.delete
WelcomeScreen.new
else
ShowProjectScreen.new
end
end
|
#info ⇒ Object
236
237
238
|
# File 'lib/kale/ui.rb', line 236
def info
puts "Are you sure you want to delete #{@@project.name}"
end
|
240
241
242
243
244
|
# File 'lib/kale/ui.rb', line 240
def
.push "Yes"
.push "NO"
super
end
|