Sha256: f9b39ed4328d12739690941debb2b8484505d59a648f08a1bd0f1837e6937f21
Contents?: true
Size: 444 Bytes
Versions: 27
Compression:
Stored size: 444 Bytes
Contents
# lib/gemwarrior/entities/boss.rb # Boss monster require_relative 'monster' module Gemwarrior class Boss < Monster attr_reader :win_text def win_text win_text = "You beat #{name}! You win!" win_text << 'You become the true Gem Warrior, marry Queen Ruby, and have many fine, sparkling children. ' win_text << 'Thank you for playing. Goodbye.' puts win_text exit(0) end end end
Version data entries
27 entries across 27 versions & 1 rubygems