Method: Experiment::Factorial.param
- Defined in:
- lib/experiment/factorial.rb
.param(name, value = nil, &block) ⇒ Object Also known as: independent_variable
Specify a parameter that will be used as a factor in the experiment
31 32 33 34 35 36 37 38 |
# File 'lib/experiment/factorial.rb', line 31 def param(name, value = nil, &block) @@params ||= {} if block_given? @@params[name] = block.call else @@params[name] = value end end |