vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/lib/typhoeus/hydra/block_connection.rb
# Overrides add in order to check before if block connection
# is turned on. If thats the case a NoStub error is
# raised.
#
# @example Add the request.
#   hydra.add(request)
#
# @param [ Request ] request The request to enqueue.
Overrides add in order to check before if block connection
is turned on. If thats the case a NoStub error is
raised.
Overrides add in order to check before if block connection is turned on . If thats the case a NoStub error is raised .
def add(request)
        if request.blocked?
          raise Typhoeus::Errors::NoStub.new(request)
        else
          super
        end
      end
def add ( request ) if request . blocked? raise Typhoeus :: Errors :: NoStub . new ( request ) else super end end
Overrides add in order to check before if block connection
is turned on.
Overrides add in order to check before if block connection is turned on .
request
<not_specific>
<not_specific>
request The request to enqueue.
request The request to enqueue .
example
Add the request. hydra.add(request)
Add the request . hydra . add ( request )