vendor/profile/ruby/2.6.0/gems/html-pipeline-2.13.0/lib/html/pipeline.rb
# Internal: if the `instrumentation_service` object is set, instruments the
# block, otherwise the block is ran without instrumentation.
#
# Returns the result of the provided block.
if the `instrumentation_service` object is set, instruments the
block, otherwise the block is ran without instrumentation.

Returns the result of the provided block.
if the ` instrumentation_service ` object is set instruments the block otherwise the block is ran without instrumentation . Returns the result of the provided block .
def instrument(event, payload = nil)
      payload ||= default_payload
      return yield(payload) unless instrumentation_service
      instrumentation_service.instrument event, payload do |payload|
        yield payload
      end
    end
def instrument ( event , payload = nil ) payload ||= default_payload return yield ( payload ) unless instrumentation_service instrumentation_service . instrument event , payload do | payload | yield payload end end
Internal: if the `instrumentation_service` object is set, instruments the
block, otherwise the block is ran without instrumentation.
Internal : if the ` instrumentation_service ` object is set instruments the block otherwise the block is ran without instrumentation .
event
<not_specific>
payload
<not_specific>