class method self.new

Ruby on Rails 6.0.6

Since v6.0.6

Available in: v6.0.6 v6.1.7.10 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

self.new(identifiers = {})

No documentation comment.

Parameters

identifiers opt = {}
Source
# File actioncable/lib/action_cable/channel/test_case.rb, line 50
      def initialize(identifiers = {})
        @transmissions = []

        identifiers.each do |identifier, val|
          define_singleton_method(identifier) { val }
        end

        @subscriptions = ActionCable::Connection::Subscriptions.new(self)
        @identifiers = identifiers.keys
        @logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
      end

Defined in actioncable/lib/action_cable/channel/test_case.rb line 50 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionCable::Channel::ConnectionStub

Type at least 2 characters to search.

↑↓ navigate · open · esc close