Module: DiabloGame::PossibleJewels
- Defined in:
- lib/diablo_game/jewel.rb
Constant Summary collapse
- JEWELS =
[ Jewel.new(:Coal, 5), Jewel.new(:Coal, 5), Jewel.new(:Coal, 5), Jewel.new(:Coal, 5), Jewel.new(:Ruby, 50), Jewel.new(:Sapphire, 100), Jewel.new(:Diamond, 200), Jewel.new(:Emerald, 300), Jewel.new(:Unobtanium!, 1000) ]
Class Method Summary collapse
Class Method Details
.random ⇒ Object
19 20 21 |
# File 'lib/diablo_game/jewel.rb', line 19 def self.random JEWELS.sample end |