class ProcessExecuter::Destinations::Stdout

@api private
Handles standard output redirection

def self.handles?(destination)

Returns:
  • (Boolean) - true if destination is :out or 1

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

def write(data)

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

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