lib/vanity/playground.rb
def experiment(name)
      id = name.to_s.downcase.gsub(/\W/, "_").to_sym
      Vanity.logger.warn("Deprecated: Please call experiment method with experiment identifier (a Ruby symbol)") unless id == name
      experiments[id.to_sym] or raise NoExperimentError, "No experiment #{id}"
    end
def experiment(name)
      id = name.to_s.downcase.gsub(/\W/, "_").to_sym
      Vanity.logger.warn("Deprecated: Please call experiment method with experiment identifier (a Ruby symbol)") unless id == name
      experiments[id.to_sym] or raise NoExperimentError, "No experiment #{id}"
    end
def experiment ( name ) id = name . to_s . downcase . gsub ( / \W / , "_" ) . to_sym Vanity . logger . warn ( "Deprecated: Please call experiment method with experiment identifier (a Ruby symbol)" ) unless id == name experiments [ id . to_sym ] or raise NoExperimentError , "No experiment #{id}" end
Returns the experiment. You may not have guessed, but this method raises
 an exception if it cannot load the experiment's definition.

 @see Vanity::Experiment
 @deprecated
Returns the experiment . You may not have guessed but this method raises an exception if it cannot load the experiment s definition .