Module: Untied::Consumer::Sync::Backend::Base::ClassMethods
- Defined in:
- lib/untied-consumer-sync/backend/base.rb
Class Method Summary collapse
Class Method Details
.new(*args, &block) ⇒ Object
72 73 74 75 76 77 78 79 80 81 |
# File 'lib/untied-consumer-sync/backend/base.rb', line 72 def self.new(*args, &block) old_instance = @@instances[args[0]['name']] return old_instance if old_instance obj = ModelHelper.allocate obj.send(:initialize, *args, &block) @@instances[args[0]['name']] = obj obj end |