Method: ProcessExecuter::Result#to_s

Defined in:
lib/process_executer/result.rb

#to_sString

Return a string representation of the result

Examples:

result.to_s #=> "pid 70144 SIGKILL (signal 9) timed out after 10s"

Returns:

  • (String)


106
107
108
# File 'lib/process_executer/result.rb', line 106

def to_s
  "#{super}#{timed_out? ? " timed out after #{options.timeout_after}s" : ''}"
end