Method: Wisper::ObjectRegistration#initialize

Defined in:
lib/wisper/registration/object.rb

#initialize(listener, **options) ⇒ ObjectRegistration

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of ObjectRegistration.



7
8
9
10
11
12
13
# File 'lib/wisper/registration/object.rb', line 7

def initialize(listener, **options)
  super(listener, **options)
  @with   = options[:with]
  @prefix = ValueObjects::Prefix.new options[:prefix]
  @allowed_classes = Array(options[:scope]).map(&:to_s).to_set
  @broadcaster = map_broadcaster(options[:async] || options[:broadcaster])
end