Class: Ruckus::Mutator::Multiplier
- Defined in:
- lib/ruckus/mutator.rb
Overview
Geometrically increases size.
A AA AAAA AAAAAAAA … etc
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Multiplier
constructor
- Takes: multiplier
-
(def: 2) how much to multiply by.
- #mod(x) ⇒ Object
Methods inherited from Modifier
Constructor Details
#initialize(opts = {}) ⇒ Multiplier
Takes:
- multiplier
-
(def: 2) how much to multiply by.
117 118 119 120 |
# File 'lib/ruckus/mutator.rb', line 117 def initialize(opts={}) @step = opts[:multiplier] || 2 super end |
Instance Method Details
#mod(x) ⇒ Object
122 123 124 |
# File 'lib/ruckus/mutator.rb', line 122 def mod(x) x * @step end |