Method: Experiment::Config.set
- Defined in:
- lib/experiment/config.rb
.set(opts) ⇒ Object
Mainly for use on the console for development.
Usage in experiments may result in a warning, since it may invalidate results.
124 125 126 127 128 129 |
# File 'lib/experiment/config.rb', line 124 def set(opts) @used ||= [] opts.keys.each {|key| puts "Warning: Overwriting '#{key}' that was already used in an experiment" if @used.include? key } @config ||= opts @config.merge! opts end |