Method: TTY::Command::ExitError#extract_output

Defined in:
lib/tty/command/exit_error.rb

#extract_output(value) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



26
27
28
# File 'lib/tty/command/exit_error.rb', line 26

def extract_output(value)
  (value || "").strip.empty? ? "Nothing written" : value.strip
end