Sha256: b5c863b14e4778ef922594ab10ec9a6ee843fdc3b16da3fb95a66240221f7ad8
Contents?: true
Size: 918 Bytes
Versions: 1
Compression:
Stored size: 918 Bytes
Contents
# frozen_string_literal: true # # Copyright (c) 2019-present, Blue Marble Payroll, LLC # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # module Proforma # This class serves as a singleton that can make Proforma::Modeling components. class ModelFactory REGISTRY = { 'Banner': Modeling::Banner, 'Collection': Modeling::Collection, 'DataTable': Modeling::DataTable, 'Grouping': Modeling::Grouping, 'Header': Modeling::Header, 'Pane': Modeling::Pane, 'Separator': Modeling::Separator, 'Spacer': Modeling::Spacer, 'Table': Modeling::Table, 'Text': Modeling::Text }.freeze class << self extend Forwardable def_delegators :factory, :array, :make private def factory @factory ||= TypeFactory.new(REGISTRY) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
proforma-1.0.0.pre.alpha | lib/proforma/model_factory.rb |