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.
19 20 21 22 23 24 |
# File 'lib/crash_watch/gdb_controller.rb', line 19 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.
17 18 19 |
# File 'lib/crash_watch/gdb_controller.rb', line 17 def backtrace @backtrace end |
#exit_code ⇒ Object (readonly)
Returns the value of attribute exit_code.
17 18 19 |
# File 'lib/crash_watch/gdb_controller.rb', line 17 def exit_code @exit_code end |
#signal ⇒ Object (readonly)
Returns the value of attribute signal.
17 18 19 |
# File 'lib/crash_watch/gdb_controller.rb', line 17 def signal @signal end |
#snapshot ⇒ Object (readonly)
Returns the value of attribute snapshot.
17 18 19 |
# File 'lib/crash_watch/gdb_controller.rb', line 17 def snapshot @snapshot end |
Instance Method Details
#signaled? ⇒ Boolean
26 27 28 |
# File 'lib/crash_watch/gdb_controller.rb', line 26 def signaled? !!@signal end |