Method: ProcessExecuter::Options::SpawnOptions#stdout_redirection_key

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

#stdout_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 stdout

Returns:

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

    nil if not found



74
75
76
# File 'lib/process_executer/options/spawn_options.rb', line 74

def stdout_redirection_key
  options.keys.find { |option_key| option_key if stdout_redirection?(option_key) }
end