lib/dynflow/actor.rb
def filter_backtrace(backtrace)
          trace = backtrace.map { |line| filter_line(line) }
                           .chunk_while { |l1, l2| l1 == l2}
                           .map(&:first)
          if BACKTRACE_LIMIT
            count = trace.count
            trace = trace.take(BACKTRACE_LIMIT)
            trace << "[ backtrace omitted #{count - BACKTRACE_LIMIT} lines ]" if trace.count < count
          end
          trace
        end
# takes an array of backtrace lines and replaces each chunk
takes an array of backtrace lines and replaces each chunk
takes an array of backtrace lines and replaces each chunk
def filter_backtrace(backtrace)
          trace = backtrace.map { |line| filter_line(line) }
                           .chunk_while { |l1, l2| l1 == l2}
                           .map(&:first)
          if BACKTRACE_LIMIT
            count = trace.count
            trace = trace.take(BACKTRACE_LIMIT)
            trace << "[ backtrace omitted #{count - BACKTRACE_LIMIT} lines ]" if trace.count < count
          end
          trace
        end
def filter_backtrace ( backtrace ) trace = backtrace . map { | line | filter_line ( line ) } . chunk_while { | l1 , l2 | l1 == l2 } . map ( & :first ) if BACKTRACE_LIMIT count = trace . count trace = trace . take ( BACKTRACE_LIMIT ) trace << "[ backtrace omitted #{count - BACKTRACE_LIMIT} lines ]" if trace . count < count end trace end
takes an array of backtrace lines and replaces each chunk
takes an array of backtrace lines and replaces each chunk
backtrace