Class: Ig3tool::Config
- Inherits:
-
Object
- Object
- Ig3tool::Config
- 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.}" end end |