Sha256: d688ee6a19585a835530020e61439fd50823edb12419cb46fe41b27ed0e3be8b
Contents?: true
Size: 329 Bytes
Versions: 1
Compression:
Stored size: 329 Bytes
Contents
# @api private module Wisper class Registration attr_reader :on, :listener, :options def initialize(listener, options) @listener = listener @options = options @on = ValueObjects::Events.new options[:on] end private def should_broadcast?(event) on.include? event end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
siftery-wisper-2.0.1 | lib/wisper/registration/registration.rb |