Sha256: a15f4aee0789459fec9fe15694b9c428a3dc21741b7f65d8ff3c16b5eb27eb0d
Contents?: true
Size: 339 Bytes
Versions: 1
Compression:
Stored size: 339 Bytes
Contents
module StudioGame Treasure = Struct.new(:name, :points) module TreasureTrove 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) ] def self.random TREASURES.sample end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
studio_game_20150214-1.0.0 | lib/studio_game/treasure_trove.rb |