Method: Experiment::Config.init

Defined in:
lib/experiment/config.rb

.init(env = :development) ⇒ Object

loads the main config file based on the environment



70
71
72
73
# File 'lib/experiment/config.rb', line 70

def init(env = :development)
  conf = YAML::load_file("./config/config.yaml")
  @config = conf["environments"][env.to_s]
end