game_dice 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|