class ProcessExecuter::Destinations::IO
def self.handles?(destination)
-
(Boolean)
- true if destination is an IO with a valid file descriptor
Parameters:
-
destination
(Object
) -- the destination to check
def self.handles?(destination) destination.is_a?(::IO) && destination.respond_to?(:fileno) && destination.fileno end