Class: Celluloid::Internals::Stack::ThreadState

Inherits:
Struct
  • Object
show all
Includes:
DisplayBacktrace
Defined in:
lib/celluloid/internals/stack/states.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



23
24
25
# File 'lib/celluloid/internals/stack/states.rb', line 23

def backtrace
  @backtrace
end

#roleObject

Returns the value of attribute role

Returns:

  • (Object)

    the current value of role



23
24
25
# File 'lib/celluloid/internals/stack/states.rb', line 23

def role
  @role
end

#thread_idObject

Returns the value of attribute thread_id

Returns:

  • (Object)

    the current value of thread_id



23
24
25
# File 'lib/celluloid/internals/stack/states.rb', line 23

def thread_id
  @thread_id
end

Instance Method Details

#dumpObject



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