Class: Cayuga::Object::Singleton

Inherits:
Object
  • Object
show all
Defined in:
lib/cayuga/object/singleton.rb

Overview

Cayuga Object Singleton

Direct Known Subclasses

Constants, Logger

Instance Attribute Summary

Attributes inherited from Object

#configuration_name

Class Method Summary collapse

Methods included from Tools::Loggable

included

Class Method Details

.create(factory, configuration) ⇒ Object


8
9
10
11
# File 'lib/cayuga/object/singleton.rb', line 8

def self.create(factory, configuration)
  raise "#{self.stringify} already registered" if factory.registered?(self)
  factory.register(new(factory, configuration), self)
end