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