Top Level Namespace

Defined Under Namespace

Modules: Boardie

Instance Method Summary collapse

Instance Method Details

#load_configuration(file, name) ⇒ Object



11
12
13
14
15
16
17
# File 'lib/boardie.rb', line 11

def load_configuration(file, name)
  if !File.exist?(file)
    puts "There's no configuration file at #{file}!"
    exit!
  end
  Boardie.const_set(name, YAML.load_file(file))
end