module Town
Public Class Methods
quit()
click to toggle source
# 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
Private Instance Methods
quit()
click to toggle source
# 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