# File test/backup/ProDOSFile.rb, line 88 def to_s case @file_type when "BAS" then #applesoft detokeniser routine expects the first two bytes to be length of buffer buffer_length=2+contents.length buffer=(buffer_length%0x100).chr+(buffer_length/0x100).chr+contents buffer_as_applesoft_file(buffer) when "AWP" then buffer_as_awp_file(contents) else #strip of the high bits s="" @contents.each_byte{|b| s+=(b%0x80).chr.tr(0x0D.chr,"\n")} s end end