Class: Randsum::ReplacerRerollValue
- Inherits:
-
ReplacerValue
- Object
- ReplacerValue
- Randsum::ReplacerRerollValue
- Defined in:
- lib/randsum/filters/replacers/replacer_values/replacer_reroll_value.rb
Constant Summary
Constants inherited from ReplacerValue
Randsum::ReplacerValue::DOUBLE, Randsum::ReplacerValue::REROLL
Instance Attribute Summary
Attributes inherited from ReplacerValue
Instance Method Summary collapse
Methods inherited from ReplacerValue
Constructor Details
This class inherits a constructor from Randsum::ReplacerValue
Instance Method Details
#transform(match) ⇒ Object
3 4 5 |
# File 'lib/randsum/filters/replacers/replacer_values/replacer_reroll_value.rb', line 3 def transform(match) match.map { roll.die.simple_roll } end |