Class: Cayuga::Object::Singleton
- Defined in:
- lib/cayuga/object/singleton.rb
Overview
Cayuga Object Singleton
Instance Attribute Summary
Attributes inherited from Object
Class Method Summary collapse
Methods included from Tools::Loggable
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 |