File: block.rb

package info (click to toggle)
ruby-wisper 3.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 276 kB
  • sloc: ruby: 1,231; makefile: 4
file content (11 lines) | stat: -rw-r--r-- 225 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
# @api private

module Wisper
  class BlockRegistration < Registration
    def broadcast(event, publisher, *args, **kwargs)
      if should_broadcast?(event)
        listener.call(*args, **kwargs)
      end
    end
  end
end