Class: Randsum::ReplacerRerollValue

Inherits:
ReplacerValue show all
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

#roll, #value

Instance Method Summary collapse

Methods inherited from ReplacerValue

for, #initialize

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