Sha256: 76c04c27efb6c0ae2b1a3aa7c7f9225100ea59e9d02c97d9c6eb56f73a6294b5
Contents?: true
Size: 420 Bytes
Versions: 2
Compression:
Stored size: 420 Bytes
Contents
module SoarConfiguredFactory class ConfiguredFactory attr_accessor :configuration attr_reader :path def initialize(configuration) @configuration = configuration end def create(type) entry = @configuration @path = { } if not @path @path.each do |node| entry = entry[node] end Object::const_get(entry[type]['adaptor']).new(entry[type]) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
soar_configured_factory-0.1.1 | lib/soar_configured_factory/configured_factory.rb |
soar_configured_factory-0.1.0 | lib/soar_configured_factory/configured_factory.rb |