Method: Motion::Component::Broadcasts#process_broadcast
- Defined in:
- lib/motion/component/broadcasts.rb
#process_broadcast(broadcast, message) ⇒ Object
78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/motion/component/broadcasts.rb', line 78 def process_broadcast(broadcast, ) return unless (handler = _broadcast_handlers[broadcast]) _run_action_callbacks(context: handler) do if method(handler).arity.zero? send(handler) else send(handler, ) end end end |