lib/docrb/spec/fixtures/logrb.rb
def backtrace(from)
    if from.respond_to?(:backtrace_locations) && !from.backtrace_locations.nil?
      stack_trace(from.backtrace_locations)
    else
      stack_trace
    end
  end
# Internal: Attempts to obtain a backtrace from a provided object. In case
# the object does not include backtrace metadata, uses #stack_trace as a
# fallback.
Attempts to obtain a backtrace from a provided object. In case
the object does not include backtrace metadata, uses #stack_trace as a
fallback.
Attempts to obtain a backtrace from a provided object . In case the object does not include backtrace metadata uses #stack_trace as a fallback .
def backtrace(from)
    if from.respond_to?(:backtrace_locations) && !from.backtrace_locations.nil?
      stack_trace(from.backtrace_locations)
    else
      stack_trace
    end
  end
def backtrace ( from ) if from . respond_to? ( :backtrace_locations ) && ! from . backtrace_locations . nil? stack_trace ( from . backtrace_locations ) else stack_trace end end
Internal: Attempts to obtain a backtrace from a provided object.
Internal : Attempts to obtain a backtrace from a provided object .
from