Class: Spoom::ExecResult

Inherits:
T::Struct
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/spoom/context/exec.rb

Instance Method Summary collapse

Instance Method Details

#to_sObject



14
15
16
17
18
19
20
21
22
# File 'lib/spoom/context/exec.rb', line 14

def to_s
  <<~STR
    ########## STDOUT ##########
    #{out.empty? ? "<empty>" : out}
    ########## STDERR ##########
    #{err&.empty? ? "<empty>" : err}
    ########## STATUS: #{status} ##########
  STR
end