Module: StudioGame::TreasureTrove
- Defined in:
- lib/studio_game/treasure_trove.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
14 15 16 |
# File 'lib/studio_game/treasure_trove.rb', line 14 def self.random TREASURES.sample end |