Class: AppleSoftFile

Inherits:
DOSFile show all
Defined in:
lib/DOSFile.rb

Constant Summary

Constants inherited from DSKFile

DSKFile::APPLESOFT_TOKENS

Instance Attribute Summary

Attributes inherited from DOSFile

#contents, #filename, #locked

Attributes inherited from DSKFile

#contents, #filename

Instance Method Summary collapse

Methods inherited from DOSFile

#catalog_filename, catalog_filename, #initialize

Methods inherited from DSKFile

#==, #buffer_as_applesoft_file, #can_be_picture?, #hex_dump, #initialize, #length_in_sectors, #to_ascii

Constructor Details

This class inherits a constructor from DOSFile

Instance Method Details

#file_extensionObject



320
321
322
# File 'lib/DOSFile.rb', line 320

def file_extension
	".bas"
end

#file_typeObject



307
308
309
# File 'lib/DOSFile.rb', line 307

def file_type
	"A"
end

#file_type_byteObject



311
312
313
# File 'lib/DOSFile.rb', line 311

def file_type_byte
	0x02
end

#to_sObject

display file with all AppleSoft BASIC tokens expanded to ASCII



316
317
318
# File 'lib/DOSFile.rb', line 316

def to_s
	buffer_as_applesoft_file(@contents)
end