Module: Celluloid::StackDump::DisplayBacktrace

Included in:
ActorState, ThreadState
Defined in:
lib/celluloid/stack_dump.rb

Instance Method Summary collapse

Instance Method Details

#display_backtrace(backtrace, output, indent = nil) ⇒ Object


4
5
6
7
8
9
10
11
# File 'lib/celluloid/stack_dump.rb', line 4

def display_backtrace(backtrace, output, indent = nil)
  backtrace ||= ["EMPTY BACKTRACE"]
  backtrace.each do |line|
    output << indent if indent
    output << "\t" << line << "\n"
  end
  output << "\n\n"
end