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, **) super(listener, **) @with = [:with] @prefix = ValueObjects::Prefix.new [:prefix] @allowed_classes = Array([:scope]).map(&:to_s).to_set @broadcaster = map_broadcaster([:async] || [:broadcaster]) end |