Sha256: 3a99f367e50c1e89accb4d46983c68c79c5f74a83b49f72eb0f6f2a4b42b8c35

Contents?: true

Size: 308 Bytes

Versions: 12

Compression:

Stored size: 308 Bytes

Contents

# frozen_string_literal: true

module StimulusReflex
  class NothingBroadcaster < Broadcaster
    def broadcast(_, data)
      broadcast_message subject: "nothing", data: data
    end

    def nothing?
      true
    end

    def to_sym
      :nothing
    end

    def to_s
      "Nothing"
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
stimulus_reflex-3.4.2 lib/stimulus_reflex/broadcasters/nothing_broadcaster.rb
stimulus_reflex-3.5.0.pre2 lib/stimulus_reflex/broadcasters/nothing_broadcaster.rb
stimulus_reflex-3.5.0.pre1 lib/stimulus_reflex/broadcasters/nothing_broadcaster.rb
stimulus_reflex-3.5.0.pre0 lib/stimulus_reflex/broadcasters/nothing_broadcaster.rb
stimulus_reflex-3.4.1 lib/stimulus_reflex/broadcasters/nothing_broadcaster.rb
stimulus_reflex-3.4.0 lib/stimulus_reflex/broadcasters/nothing_broadcaster.rb
stimulus_reflex-3.4.0.pre9 lib/stimulus_reflex/broadcasters/nothing_broadcaster.rb
stimulus_reflex-3.4.0.pre8 lib/stimulus_reflex/broadcasters/nothing_broadcaster.rb
stimulus_reflex-3.4.0.pre7 lib/stimulus_reflex/broadcasters/nothing_broadcaster.rb
stimulus_reflex-3.4.0.pre6 lib/stimulus_reflex/broadcasters/nothing_broadcaster.rb
stimulus_reflex-3.4.0.pre5 lib/stimulus_reflex/broadcasters/nothing_broadcaster.rb
stimulus_reflex-3.4.0.pre4 lib/stimulus_reflex/broadcasters/nothing_broadcaster.rb