def write str
      self.class.stream.tap do |stream|
        stream.write str
        stream.flush
      end ; nil
    end
def write str
      self.class.stream.tap do |stream|
        stream.write str
        stream.flush
      end ; nil
    end
Write to the out stream, and flush it