Class: Wisper::BlockRegistration Private

Inherits:
Registration show all
Defined in:
lib/wisper/registration/block.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.

Instance Attribute Summary

Attributes inherited from Registration

#listener, #on

Instance Method Summary collapse

Methods inherited from Registration

#initialize

Constructor Details

This class inherits a constructor from Wisper::Registration

Instance Method Details

#broadcast(event, publisher, *args, **kwargs) ⇒ Object

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
8
9
# File 'lib/wisper/registration/block.rb', line 5

def broadcast(event, publisher, *args, **kwargs)
  if should_broadcast?(event)
    listener.call(*args, **kwargs)
  end
end