# File lib/net/sftp/session.rb, line 122 def download!(remote, local=nil, options={}, &block) destination = local || StringIO.new result = download(remote, destination, options, &block).wait local ? result : destination.string end