Sha256: 30eee9a7d315c1af38f993fbd3403e90b883269db0d26785b11addf360b64e04
Contents?: true
Size: 424 Bytes
Versions: 11
Compression:
Stored size: 424 Bytes
Contents
require 'yaml' module TF1Converter class Config def self.load(path) @config = YAML.load(File.open(path, 'r')) end %w(icon_path start_path end_path icons colors input output).each do |name| define_singleton_method(name.to_sym) do config[name] end end private def self.config raise "NO CONFIG LOADED" unless @config @config['tf1_converter'] end end end
Version data entries
11 entries across 11 versions & 1 rubygems