class ProcessExecuter::Destinations::Writer

@api private
Handles generic objects that respond to ‘#write`

def self.handles?(destination)

Returns:
  • (Boolean) - true if destination responds to #write and is not an IO object with a #fileno

Parameters:
  • destination (Object) -- the destination to check
def self.handles?(destination)
  destination.respond_to?(:write) && (!destination.respond_to?(:fileno) || destination.fileno.nil?)
end

def write(data)

Returns:
  • (Integer) - the number of bytes written

Parameters:
  • data (String) -- the data to write
def write(data)
  super
  destination.write data
end