Module: ReactiveObservers

Defined in:
lib/reactive_observers.rb,
lib/reactive_observers/base.rb,
lib/reactive_observers/version.rb,
lib/reactive_observers/configuration.rb,
lib/reactive_observers/observable/base.rb,
lib/reactive_observers/observer/container.rb,
lib/reactive_observers/observable/removing.rb,
lib/reactive_observers/observable/filtering.rb,
lib/reactive_observers/observable/db_listener.rb,
lib/reactive_observers/observable/notification.rb,
lib/reactive_observers/database_adapters/factory.rb,
lib/reactive_observers/observer/container_validator.rb,
lib/reactive_observers/observer/container_comparator.rb,
lib/reactive_observers/database_adapters/abstract_adapter.rb,
lib/reactive_observers/database_adapters/postgresql_adapter.rb,
lib/generators/reactive_observers/postgresql_listeners_generator.rb

Defined Under Namespace

Modules: Base, DatabaseAdapters, Observable, Observer Classes: Configuration, Error, PostgresqlListenersGenerator

Constant Summary collapse

VERSION =
'0.0.2'.freeze

Class Method Summary collapse

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:

  • (configuration)


14
15
16
17
18
# File 'lib/reactive_observers.rb', line 14

def self.configure
  self.configuration ||= Configuration.new
  yield(configuration) if block_given?
  DatabaseAdapters::Factory.new(configuration).initialize_observer_listeners
end