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