Module: PTY

Defined in:
lib/pty_compat/patches/pty.rb

Overview

Augment PTY module with last_status

Public API collapse

Class Method Details

.last_statusProcess::Status

Returns Last process status. Use this instead of $? as some workaround methods don't set $? properly and we can't modify this variable.

Returns:

  • (Process::Status)

    Last process status. Use this instead of $? as some workaround methods don't set $? properly and we can't modify this variable.



9
10
11
12
# File 'lib/pty_compat/patches/pty.rb', line 9

def self.last_status
  # Default implementation
  $CHILD_STATUS
end