Class: Spoom::ExecResult

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

Instance Method Summary collapse

Instance Method Details

#to_sObject

: -> String



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

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