Class: Celluloid::Internals::Stack::ThreadState
- Inherits:
-
Struct
- Object
- Struct
- Celluloid::Internals::Stack::ThreadState
- Includes:
- DisplayBacktrace
- Defined in:
- lib/celluloid/internals/stack/states.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
23 24 25 |
# File 'lib/celluloid/internals/stack/states.rb', line 23 def backtrace @backtrace end |
#role ⇒ Object
Returns the value of attribute role
23 24 25 |
# File 'lib/celluloid/internals/stack/states.rb', line 23 def role @role end |
#thread_id ⇒ Object
Returns the value of attribute thread_id
23 24 25 |
# File 'lib/celluloid/internals/stack/states.rb', line 23 def thread_id @thread_id end |
Instance Method Details
#dump ⇒ Object
25 26 27 28 29 30 |
# File 'lib/celluloid/internals/stack/states.rb', line 25 def dump string = "" string << "Thread 0x#{thread_id.to_s(16)} (#{role}):\n" display_backtrace backtrace, string if backtrace string end |