Sha256: def516648d1460af16f1bf2016f07380718a18d4b3c8d090133eda82872beff0
Contents?: true
Size: 484 Bytes
Versions: 6
Compression:
Stored size: 484 Bytes
Contents
# frozen_string_literal: true require 'singleton' require 'tramway/configs/entity' module Tramway # Basic configuration of Tramway # class Config include Singleton def initialize @entities = [] end def entities=(collection) @entities = collection.map do |entity| entity_options = entity.is_a?(Hash) ? entity : { name: entity } Tramway::Configs::Entity.new(**entity_options) end end attr_reader :entities end end
Version data entries
6 entries across 6 versions & 1 rubygems