Class: Scientist::Default
- Inherits:
-
Object
- Object
- Scientist::Default
- Includes:
- Experiment
- Defined in:
- lib/scientist/default.rb
Overview
A null experiment.
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes included from Experiment
Instance Method Summary collapse
-
#enabled? ⇒ Boolean
Don’t run experiments.
-
#initialize(name) ⇒ Default
constructor
A new instance of Default.
-
#publish(result) ⇒ Object
Don’t publish anything.
Methods included from Experiment
#after_run, #before_run, #behaviors, #clean, #clean_value, #cleaner, #compare, #compare_errors, #context, #fabricate_durations_for_testing_purposes, #generate_result, #ignore, #ignore_mismatched_observation?, included, new, #observations_are_equivalent?, #raise_on_mismatches?, #raise_with, #raised, #run, #run_if, #run_if_block_allows?, set_default, #should_experiment_run?, #try, #use
Constructor Details
#initialize(name) ⇒ Default
Returns a new instance of Default.
9 10 11 |
# File 'lib/scientist/default.rb', line 9 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/scientist/default.rb', line 7 def name @name end |
Instance Method Details
#enabled? ⇒ Boolean
Don’t run experiments.
14 15 16 |
# File 'lib/scientist/default.rb', line 14 def enabled? false end |
#publish(result) ⇒ Object
Don’t publish anything.
19 20 |
# File 'lib/scientist/default.rb', line 19 def publish(result) end |