Sha256: 5a10a0a082ab75c3275cff156d4228cb8c415cb90d2c9c8b0cc65b29bfe08685

Contents?: true

Size: 830 Bytes

Versions: 4

Compression:

Stored size: 830 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

4 entries across 4 versions & 1 rubygems

Version Path
cayuga-0.0.22 lib/cayuga/object/object.rb
cayuga-0.0.21 lib/cayuga/object/object.rb
cayuga-0.0.20 lib/cayuga/object/object.rb
cayuga-0.0.19 lib/cayuga/object/object.rb