lib/scientist.rb
def science(name, opts = {})
    Scientist.run(name, opts) do |experiment|
      experiment.context(default_scientist_context)

      yield experiment
    end
  end
# Define and run a science experiment.
#
# name - a String name for this experiment.
# opts - optional hash with the the named test to run instead of "control",
#        :run is the only valid key.
#
# Yields an object which implements the Scientist::Experiment interface.
# See `Scientist::Experiment.new` for how this is defined. The context from
# the `default_scientist_context` method will be applied to the experiment.
#
# Returns the calculated value of the control experiment, or raises if an
# exception was raised.
Define and run a science experiment.
name - a String name for this experiment.
opts - optional hash with the the named test to run instead of "control",
:run is the only valid key.

Yields an object which implements the Scientist::Experiment interface.
See `Scientist::Experiment.new` for how this is defined. The context from
the `default_scientist_context` method will be applied to the experiment.

Returns the calculated value of the control experiment, or raises if an
exception was raised.
Define and run a science experiment . name - a String name for this experiment . opts - optional hash with the the named test to run instead of " control " : run is the only valid key . Yields an object which implements the Scientist :: Experiment interface . See ` Scientist :: Experiment . new ` for how this is defined . The context from the ` default_scientist_context ` method will be applied to the experiment . Returns the calculated value of the control experiment or raises if an exception was raised .
def science(name, opts = {})
    Scientist.run(name, opts) do |experiment|
      experiment.context(default_scientist_context)
      yield experiment
    end
  end
def science ( name , opts = { } ) Scientist . run ( name , opts ) do | experiment | experiment . context ( default_scientist_context ) yield experiment end end
Define and run a science experiment.
Define and run a science experiment .
name
opts