class ProcessExecuter::Destinations::Stderr

@api private
Handles standard error redirection

def self.handles?(destination)

Returns:
  • (Boolean) - true if destination is :err or 2

Parameters:
  • destination (Object) -- the destination to check
def self.handles?(destination)
  [:err, 2].include?(destination)
end

def write(data)

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

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