module PitchProducts
Constants
- PRODUCTS
Public Instance Methods
Source
# File lib/pitch_game.rb, line 21 def pick(rand: ->(max) { Random.rand(0...max) }) PRODUCTS[rand.call(PRODUCTS.length)] end
# File lib/pitch_game.rb, line 21 def pick(rand: ->(max) { Random.rand(0...max) }) PRODUCTS[rand.call(PRODUCTS.length)] end