game_dice 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/game_dice/dice.rb +1 -1
- metadata +1 -1
data/lib/game_dice/dice.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# A Dice object represents a collection of individual Die objects.
|
2
2
|
# Defaults to two dice.
|
3
3
|
class Dice < Array
|
4
|
-
# Dice
|
4
|
+
# Dice collection defaults to 2d6
|
5
5
|
def initialize(amount=2, sides=6)
|
6
6
|
amount.times { self << Die.new(sides) }
|
7
7
|
end
|