Sha256: f07454a96ee10b3e28cc05c2ead3137c47a350137e50814d9ef28721a156f5ed
Contents?: true
Size: 556 Bytes
Versions: 11
Compression:
Stored size: 556 Bytes
Contents
require 'config_builder/class_registry' module ConfigBuilder module Loader @registry = ConfigBuilder::ClassRegistry.new(:loader) def self.register(identifier, klass) @registry.register(identifier, klass) end def self.retrieve(identifier) @registry.retrieve(identifier) end def self.generate(identifier, method_name, method_value) obj = retrieve(identifier).new obj.send(method_name, method_value) end require 'config_builder/loader/yaml' require 'config_builder/loader/yaml_erb' end end
Version data entries
11 entries across 11 versions & 2 rubygems