vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/lib/typhoeus/request/before.rb
# Overrride run in order to execute callbacks in
# Typhoeus.before. Will break and return when a
# callback returns nil or false. Calls super
# otherwise.
#
# @example Run the request.
#   request.run
Overrride run in order to execute callbacks in
Typhoeus.before. Will break and return when a
callback returns nil or false. Calls super
otherwise.
Overrride run in order to execute callbacks in Typhoeus . before . Will break and return when a callback returns nil or false . Calls super otherwise .
def run
        Typhoeus.before.each do |callback|
          value = callback.call(self)
          if value.nil? || value == false || value.is_a?(Response)
            return response
          end
        end
        super
      end
def run Typhoeus . before . each do | callback | value = callback . call ( self ) if value . nil? || value == false || value . is_a? ( Response ) return response end end super end
Overrride run in order to execute callbacks in
Typhoeus.before.
Overrride run in order to execute callbacks in Typhoeus . before .
example
Run the request. request.run
Run the request . request . run