Class: DeleteProjectScreen

Inherits:
Screen
  • Object
show all
Defined in:
lib/kale/ui.rb

Instance Method Summary collapse

Methods inherited from Screen

#initialize

Constructor Details

This class inherits a constructor from Screen

Instance Method Details

#handle_menuObject



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

#infoObject



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 menu
  @menu.push "Yes"
  @menu.push "NO"
  super
end