Module: StudioGame::TreasureChest
- Defined in:
- lib/jj-studio_game/treasures.rb
Constant Summary collapse
- TREASURES =
[ Treasure.new(:pie, 5), Treasure.new(:bottle, 25), Treasure.new(:hammer, 50), Treasure.new(:skillet, 100), Treasure.new(:broomstick, 200), Treasure.new(:crowbar, 400) ]
Class Method Summary collapse
Class Method Details
.random ⇒ Object
16 17 18 |
# File 'lib/jj-studio_game/treasures.rb', line 16 def self.random TREASURES.sample end |