lib/bolt/transport/base.rb
# Raises an error if more than one target was given in the batch.
#
# The default implementations of batch_* strictly assume the transport is
# using the default batch size of 1. This method ensures that is the
# case and raises an error if it's not.
Raises an error if more than one target was given in the batch.
The default implementations of batch_* strictly assume the transport is
using the default batch size of 1. This method ensures that is the
case and raises an error if it's not.
Raises an error if more than one target was given in the batch . The default implementations of batch_ * strictly assume the transport is using the default batch size of 1 . This method ensures that is the case and raises an error if it ' s not .
def assert_batch_size_one(method, targets)
        if targets.length > 1
          message = "#{self.class.name} must implement #{method} to support batches (got #{targets.length} targets)"
          raise NotImplementedError, message
        end
      end
def assert_batch_size_one ( method , targets ) if targets . length > 1 message = "#{self.class.name} must implement #{method} to support batches (got #{targets.length} targets)" raise NotImplementedError , message end end
Raises an error if more than one target was given in the batch.
Raises an error if more than one target was given in the batch .
method
<not_specific>
targets
<not_specific>