Sha256: 557a3b8dd4ed24c72affd97f4ad9af5ef46cdf2b549bc1596960920cf759dfe5

Contents?: true

Size: 379 Bytes

Versions: 12

Compression:

Stored size: 379 Bytes

Contents

#
# Copyright (c) 2018 Patrick Thomas.  All rights reserved.
#
module Cayuga
  module Object
    # Cayuga Object Singleton
    class Singleton < Object
      def self.create(factory, configuration)
        raise "#{stringify} already registered" if factory.registered?(self)
        factory.register(new(factory, configuration), self)
      end

    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
cayuga-0.0.22 lib/cayuga/object/singleton.rb
cayuga-0.0.21 lib/cayuga/object/singleton.rb
cayuga-0.0.20 lib/cayuga/object/singleton.rb
cayuga-0.0.19 lib/cayuga/object/singleton.rb
cayuga-0.0.18 lib/cayuga/object/singleton.rb
cayuga-0.0.17 lib/cayuga/object/singleton.rb
cayuga-0.0.16 lib/cayuga/object/singleton.rb
cayuga-0.0.15 lib/cayuga/object/singleton.rb
cayuga-0.0.14 lib/cayuga/object/singleton.rb
cayuga-0.0.13 lib/cayuga/object/singleton.rb
cayuga-0.0.12 lib/cayuga/object/singleton.rb
cayuga-0.0.11 lib/cayuga/object/singleton.rb