Method: Town.quit

Defined in:
lib/lotrd/view/town.rb

.quitObject



28
29
30
31
32
33
34
35
36
# File 'lib/lotrd/view/town.rb', line 28

def quit
    system 'clear'
    player = YAML.load(File.read(ENV['HOME'] + "/." + "playerdata.yml"))
    system 'clear'
    titleStyle = Artii::Base.new :font => 'slant'
    puts "Thanks for playing! See you next time," +"\n"*4 + "#{(titleStyle.asciify(player.name)).colorize(:yellow)}"
    sleep(3)
    exit!
end