Sha256: ced0788daebe2a6534beda1e0f83c158d65098f509be3fcfaba8ba4cf424f519
Contents?: true
Size: 651 Bytes
Versions: 2
Compression:
Stored size: 651 Bytes
Contents
# frozen_string_literal: true module StimulusReflex class CableReadyChannels delegate :[], to: "cable_ready_channels" def initialize(stream_name) @stream_name = stream_name end def cable_ready_channels CableReady::Channels.instance end def stimulus_reflex_channel CableReady::Channels.instance[@stream_name] end def method_missing(name, *args) return stimulus_reflex_channel.public_send(name, *args) if stimulus_reflex_channel.respond_to?(name) super end def respond_to_missing?(name, include_all) stimulus_reflex_channel.respond_to?(name) || super end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
stimulus_reflex-3.4.2 | lib/stimulus_reflex/cable_ready_channels.rb |
stimulus_reflex-3.4.1 | lib/stimulus_reflex/cable_ready_channels.rb |