Sha256: d8e5650d9f3ce9db44b4879eb4962404c6191d680ee023dee8474604eac90a2f

Contents?: true

Size: 832 Bytes

Versions: 1

Compression:

Stored size: 832 Bytes

Contents

#
# Copyright (c) 2018 Patrick Thomas.  All rights reserved.
#
module Cayuga
  # noinspection RubyConstantNamingConvention
  RootObject = Object

  module Object

    # Cayuga Object Object
    class Object
      include Tools::Loggable

      attr_reader :configuration_name

      def self.create(factory, configuration)
        new(factory, configuration)
      end

      private_class_method :new

      private

      attr_reader :factory, :configuration

      def initialize(factory, configuration)
        @factory = factory
        @configuration = configuration
        @configuration_name = factory.configuration_name
        return if self.class == Logger

        factory[Logger]
          .log_log!(self.class, filter: Regexp.new(self.class.name))
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cayuga-0.0.23 lib/cayuga/object/object.rb