Module: StudioGame::SwagBag
- Defined in:
- lib/studio_game/swagbag.rb
Constant Summary collapse
- SWAGS =
[ Swag.new(:tshirt, 10), Swag.new(:watch, 100), Swag.new(:keyboard, 50), Swag.new(:juices, 20) # Swag.new(:hammer, 20) # Swag.new(:crowbar, 20) ]
Class Method Summary collapse
Class Method Details
.random ⇒ Object
16 17 18 19 |
# File 'lib/studio_game/swagbag.rb', line 16 def self.random SWAGS.sample # this returns a single sample from the Array end |