Sha256: 8ffafe50b96f5687fe0998807b4b2792576a9c5defb676c7c25d34c0bae2f21e

Contents?: true

Size: 524 Bytes

Versions: 1

Compression:

Stored size: 524 Bytes

Contents

#
# Copyright (c) 2018 Patrick Thomas.  All rights reserved.
#
require 'ice_nine'
require 'ice_nine/core_ext/object'

module Cayuga
  module Object
    # Cayuga Object Factory Helper Shared
    module FactoryHelperShared
      private

      def primary_configuration(key, type: Hash)
        if configuration.key? key
          configuration[key]
        else
          log.warn('missing key in configuration', key: key, type: type.name )
          type.new
        end
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cayuga-0.0.17 lib/cayuga/object/factory_helper_shared.rb