Class: Celluloid::StackDump::ThreadState
- Inherits:
-
Struct
- Object
- Struct
- Celluloid::StackDump::ThreadState
- Includes:
- DisplayBacktrace
- Defined in:
- lib/celluloid/stack_dump.rb
Instance Attribute Summary collapse
-
#backtrace ⇒ Object
Returns the value of attribute backtrace.
-
#role ⇒ Object
Returns the value of attribute role.
-
#thread_id ⇒ Object
Returns the value of attribute thread_id.
Instance Method Summary collapse
Methods included from DisplayBacktrace
Instance Attribute Details
#backtrace ⇒ Object
Returns the value of attribute backtrace
59 60 61 |
# File 'lib/celluloid/stack_dump.rb', line 59 def backtrace @backtrace end |
#role ⇒ Object
Returns the value of attribute role
59 60 61 |
# File 'lib/celluloid/stack_dump.rb', line 59 def role @role end |
#thread_id ⇒ Object
Returns the value of attribute thread_id
59 60 61 |
# File 'lib/celluloid/stack_dump.rb', line 59 def thread_id @thread_id end |
Instance Method Details
#dump ⇒ Object
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 |