class ProcessExecuter::Destinations::IO
@api private
Handles IO objects
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
def write(data)
-
(IOError)- if the IO object is closed
Returns:
-
(Integer)- the number of bytes written
Parameters:
-
data(String) -- the data to write
def write(data) super destination.write data end