Class: Ruckus::Mutator::Adder
- Defined in:
- lib/ruckus/mutator.rb
Overview
Adds fixed amounts of data.
A AA AAA AAAA … etc
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Adder
constructor
- Takes: base
- (def: “A”) what to add step
-
(def: 100) how much of this to add at each step.
- #mod(x) ⇒ Object
Methods inherited from Modifier
Constructor Details
#initialize(opts = {}) ⇒ Adder
Takes:
- base
-
(def: “A”) what to add
- step
-
(def: 100) how much of this to add at each step
140 141 142 143 144 |
# File 'lib/ruckus/mutator.rb', line 140 def initialize(opts={}) @base = opts[:base] || "A" @step = opts[:step] || 100 super end |