Module: Scientist::Experiment::RaiseOnMismatch
- Defined in:
- lib/scientist/experiment.rb
Instance Method Summary collapse
-
#raise_on_mismatches=(bool) ⇒ Object
Set this flag to raise on experiment mismatches.
-
#raise_on_mismatches? ⇒ Boolean
Whether or not to raise a mismatch error when a mismatch occurs.
Instance Method Details
#raise_on_mismatches=(bool) ⇒ Object
Set this flag to raise on experiment mismatches.
This causes all science mismatches to raise a MismatchError. This is intended for test environments and should not be enabled in a production environment.
bool - true/false - whether to raise when the control and candidate mismatch.
70 71 72 |
# File 'lib/scientist/experiment.rb', line 70 def raise_on_mismatches=(bool) @raise_on_mismatches = bool end |
#raise_on_mismatches? ⇒ Boolean
Whether or not to raise a mismatch error when a mismatch occurs.
75 76 77 |
# File 'lib/scientist/experiment.rb', line 75 def raise_on_mismatches? @raise_on_mismatches end |