Class: Spoom::ExecResult

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

Instance Method Summary collapse

Instance Method Details

#to_sObject



23
24
25
26
27
28
29
30
31
# File 'lib/spoom.rb', line 23

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