lib/optimizely_server_side/experiment.rb
# Add all the variation to the variations collection
Add all the variation to the variations collection
Add all the variation to the variations collection
def add_variation(key, opts = {}, &blk)
      Variation.new(
        key: key,
        primary: opts[:primary] || false,
        content: blk
      ).tap do |variation_instance|
        @variations << variation_instance
      end
    end
def add_variation ( key , opts = { } , & blk ) Variation . new ( key : key , primary : opts [ :primary ] || false , content : blk ) . tap do | variation_instance | @variations << variation_instance end end
Add all the variation to the variations collection
Add all the variation to the variations collection
key
<not_specific>
opts
<not_specific>
blk
<not_specific>