dice_roller 0.0.1 → 0.0.2
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/dice_roller/cli.rb +5 -5
- metadata +2 -2
data/lib/dice_roller/cli.rb
CHANGED
@@ -7,19 +7,19 @@ class DiceRoller::Cli
|
|
7
7
|
|
8
8
|
def initialize(args)
|
9
9
|
# default the number of each type of dice to zero
|
10
|
-
four = six = eight = ten = twelve = twenty = percentile = 0
|
10
|
+
@four = @six = @eight = @ten = @twelve = @twenty = @percentile = 0
|
11
11
|
|
12
12
|
# default result set to sum
|
13
|
-
type = :sum
|
13
|
+
@type = :sum
|
14
14
|
|
15
15
|
# default minimum value for success to 8
|
16
|
-
minimum = 8
|
16
|
+
@minimum = 8
|
17
17
|
|
18
18
|
# default reroll value to 10
|
19
|
-
reroll = 10
|
19
|
+
@reroll = 10
|
20
20
|
|
21
21
|
# default to ones not subtracting successes
|
22
|
-
subtract = false
|
22
|
+
@subtract = false
|
23
23
|
|
24
24
|
options = OptionParser.new do |opts|
|
25
25
|
opts.banner = "Usage: dice-roller"
|