class ProcessExecuter::Destinations::ChildRedirection
Handles [:child, fd] redirection options as supported by ‘Process.spawn`
@api private
Public Class Methods
compatible_with_monitored_pipe?(= false)
click to toggle source
This class should not be wrapped in a monitored pipe @return [Boolean]
# File lib/process_executer/destinations/child_redirection.rb, line 21 def self.compatible_with_monitored_pipe? = false end
handles?(destination)
click to toggle source
Determines if this class can handle the given destination
@param destination [Object] the destination to check @return [Boolean] true if the destination is an array in the format [:child, file_descriptor]
# File lib/process_executer/destinations/child_redirection.rb, line 15 def self.handles?(destination) destination.is_a?(Array) && destination.size == 2 && destination[0] == :child end