Method: ProcessExecuter::Options::SpawnOptions#stderr_redirection_key

Defined in:
lib/process_executer/options/spawn_options.rb

#stderr_redirection_keySymbol, ...

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.

Determine the option key that indicates a redirection option for stderr

Returns:

  • (Symbol, Integer, IO, Array, nil)

    nil if not found



94
95
96
# File 'lib/process_executer/options/spawn_options.rb', line 94

def stderr_redirection_key
  options.keys.find { |option_key| option_key if stderr_redirection?(option_key) }
end