dice_roller 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- 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"
|