Sha256: 747619c5a7f0354c527fe8cffed042b518f6eaaccddb9ffccf61eb055a872135
Contents?: true
Size: 445 Bytes
Versions: 40
Compression:
Stored size: 445 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
40 entries across 40 versions & 1 rubygems