class Net::SFTP::Operations::File

def print(*items)

after all arguments have been written.
Writes each argument to the stream. If +$\+ is set, it will be written
def print(*items)
  items.each { |item| write(item) }
  write($\) if $\
  nil
end