Sha256: 2218a795989bd2e275ab13601ba06b9cf57cf84d616f11afaf467d6a4ee91656
Contents?: true
Size: 200 Bytes
Versions: 3
Compression:
Stored size: 200 Bytes
Contents
module Materialist class MaterializerFactory def self.class_from_topic(topic) "#{topic.to_s.singularize.classify}Materializer".constantize rescue NameError nil end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
materialist-3.3.0 | lib/materialist/materializer_factory.rb |
materialist-3.2.0 | lib/materialist/materializer_factory.rb |
materialist-3.1.0 | lib/materialist/materializer_factory.rb |