Class: PascalFile

Inherits:
NativeFileType show all
Defined in:
lib/native_file_types/apple2/PascalFile.rb

Constant Summary collapse

PASCAL_FILE_TYPES =
[:untyped,:xdsk,:code,:text,:info,:data,:graf,:foto,:securedir]

Instance Attribute Summary

Attributes inherited from NativeFileType

#aux_code, #contents, #file_system_image, #file_type, #filename, #meta_data

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from NativeFileType

#<=>, #==, all_native_file_types, best_fit, code_for_tests, compatability_score, #data_without_header, file_type_matches?, #full_filename, #header_length, #initialize, is_valid_file_if, load_address, #load_address, matching_score, native_file_types_possible_on_file_system, non_matching_score, #to_hex_dump, #to_info_dump

Methods included from SubclassTracking

extended

Constructor Details

This class inherits a constructor from NativeFileType

Class Method Details

.file_system_file_typesObject



7
8
9
10
11
# File 'lib/native_file_types/apple2/PascalFile.rb', line 7

def PascalFile.file_system_file_types
  {
    PascalDos=>:any
  }
end

Instance Method Details

#type_descriptionObject



13
14
15
# File 'lib/native_file_types/apple2/PascalFile.rb', line 13

def type_description
  "PascalFile:#{PASCAL_FILE_TYPES[file_type]}"  
end