class ProcessExecuter::Options

def include_spawn_option?(option, value)

Other tags:
    Api: - private

Returns:
  • (Boolean) - true if the given option should be passed to `Process.spawn`

Parameters:
  • value (Object) -- the value of the option
  • option (Symbol, Integer, IO) -- the option to be tested
def include_spawn_option?(option, value)
  (option.is_a?(Integer) || option.is_a?(IO) || SPAWN_OPTIONS.include?(option)) && value != NOT_SET
end