Class: Celluloid::StackDump::ThreadState

Inherits:
Struct
  • Object
show all
Includes:
DisplayBacktrace
Defined in:
lib/celluloid/stack_dump.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from DisplayBacktrace

#display_backtrace

Instance Attribute Details

#backtraceObject

Returns the value of attribute backtrace

Returns:

  • (Object)

    the current value of backtrace


59
60
61
# File 'lib/celluloid/stack_dump.rb', line 59

def backtrace
  @backtrace
end

#roleObject

Returns the value of attribute role

Returns:

  • (Object)

    the current value of role


59
60
61
# File 'lib/celluloid/stack_dump.rb', line 59

def role
  @role
end

#thread_idObject

Returns the value of attribute thread_id

Returns:

  • (Object)

    the current value of thread_id


59
60
61
# File 'lib/celluloid/stack_dump.rb', line 59

def thread_id
  @thread_id
end

Instance Method Details

#dumpObject


62
63
64
65
66
67
# File 'lib/celluloid/stack_dump.rb', line 62

def dump
  string = ""
  string << "Thread 0x#{thread_id.to_s(16)} (#{role}):\n"
  display_backtrace backtrace, string
  string
end