Module: WisperEvent::Patches::BlockRegistration
- Defined in:
- lib/wisper_event/patches/block_registration.rb
Instance Method Summary collapse
Instance Method Details
#broadcast(event, _publisher, *args, **kwargs) ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/wisper_event/patches/block_registration.rb', line 6 def broadcast(event, _publisher, *args, **kwargs) return unless should_broadcast?(event) if event.is_a?(String) || event.is_a?(Symbol) super else # Structured event listener.call(event) end end |