Class: Ig3tool::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/config.rb

Class Method Summary collapse

Class Method Details

.[](attribute) ⇒ Object



14
15
16
# File 'lib/config.rb', line 14

def Config.[](attribute)
  @@file[attribute]
end

.load(file) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/config.rb', line 6

def Config.load(file)
  begin
    @@file = YAML.load_file(file)
  rescue SystemCallError => boom
    abort "Kon config file niet laden: #{boom.message}"
  end
end