Sha256: a136ed74a439c55b7a266f0e25a1d49ccf1bdcb9e337a64df9be225f33edf991
Contents?: true
Size: 467 Bytes
Versions: 2
Compression:
Stored size: 467 Bytes
Contents
module StimulusReflex class CableReadyChannels stimulus_reflex_channel_methods = CableReady::Channels.instance.operations.keys + [:broadcast, :broadcast_to] delegate(*stimulus_reflex_channel_methods, to: "@stimulus_reflex_channel") delegate :[], to: "@cable_ready_channels" def initialize(stream_name) @cable_ready_channels = CableReady::Channels.instance @stimulus_reflex_channel = @cable_ready_channels[stream_name] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
stimulus_reflex-3.4.0.pre8 | lib/stimulus_reflex/cable_ready_channels.rb |
stimulus_reflex-3.4.0.pre7 | lib/stimulus_reflex/cable_ready_channels.rb |