Class: Wisper::Registration Private

Inherits:
Object
  • Object
show all
Defined in:
lib/wisper/registration/registration.rb

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

Direct Known Subclasses

BlockRegistration, ObjectRegistration

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(listener, **options) ⇒ Registration

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 Registration.



7
8
9
10
# File 'lib/wisper/registration/registration.rb', line 7

def initialize(listener, **options)
  @listener = listener
  @on = ValueObjects::Events.new options[:on]
end

Instance Attribute Details

#listenerObject (readonly)

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.



5
6
7
# File 'lib/wisper/registration/registration.rb', line 5

def listener
  @listener
end

#onObject (readonly)

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.



5
6
7
# File 'lib/wisper/registration/registration.rb', line 5

def on
  @on
end