Method: Ludy::DiceSet#initialize
- Defined in:
- lib/ludy/dices.rb
#initialize(*args) ⇒ DiceSet
Returns a new instance of DiceSet.
27 28 29 30 31 32 33 34 |
# File 'lib/ludy/dices.rb', line 27 def initialize *args @diceset = args @min = @max = 0 @diceset.each{ |i| @min += i.min @max += i.max } end |