Class: CrashWatch::GdbController::ExitInfo
- Inherits:
-
Object
- Object
- CrashWatch::GdbController::ExitInfo
- Defined in:
- lib/crash_watch/gdb_controller.rb
Instance Attribute Summary collapse
-
#backtrace ⇒ Object
readonly
Returns the value of attribute backtrace.
-
#exit_code ⇒ Object
readonly
Returns the value of attribute exit_code.
-
#signal ⇒ Object
readonly
Returns the value of attribute signal.
-
#snapshot ⇒ Object
readonly
Returns the value of attribute snapshot.
Instance Method Summary collapse
-
#initialize(exit_code, signal, backtrace, snapshot) ⇒ ExitInfo
constructor
A new instance of ExitInfo.
- #signaled? ⇒ Boolean
Constructor Details
#initialize(exit_code, signal, backtrace, snapshot) ⇒ ExitInfo
Returns a new instance of ExitInfo.
8 9 10 11 12 13 |
# File 'lib/crash_watch/gdb_controller.rb', line 8 def initialize(exit_code, signal, backtrace, snapshot) @exit_code = exit_code @signal = signal @backtrace = backtrace @snapshot = snapshot end |
Instance Attribute Details
#backtrace ⇒ Object (readonly)
Returns the value of attribute backtrace.
6 7 8 |
# File 'lib/crash_watch/gdb_controller.rb', line 6 def backtrace @backtrace end |
#exit_code ⇒ Object (readonly)
Returns the value of attribute exit_code.
6 7 8 |
# File 'lib/crash_watch/gdb_controller.rb', line 6 def exit_code @exit_code end |
#signal ⇒ Object (readonly)
Returns the value of attribute signal.
6 7 8 |
# File 'lib/crash_watch/gdb_controller.rb', line 6 def signal @signal end |
#snapshot ⇒ Object (readonly)
Returns the value of attribute snapshot.
6 7 8 |
# File 'lib/crash_watch/gdb_controller.rb', line 6 def snapshot @snapshot end |
Instance Method Details
#signaled? ⇒ Boolean
15 16 17 |
# File 'lib/crash_watch/gdb_controller.rb', line 15 def signaled? !!@signal end |