Class: Trs80Text
- Inherits:
-
NativeFileType
- Object
- NativeFileType
- Trs80Text
- Includes:
- ScreenDump
- Defined in:
- lib/native_file_types/trs80/Trs80Text.rb
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
-
#matching_score ⇒ Object
make sure if we match, we override CMD.
- #to_text ⇒ Object
Methods included from ScreenDump
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, #type_description
Methods included from SubclassTracking
Constructor Details
This class inherits a constructor from NativeFileType
Class Method Details
.file_system_file_types ⇒ Object
6 7 8 9 10 |
# File 'lib/native_file_types/trs80/Trs80Text.rb', line 6 def self.file_system_file_types { TrsDos=>["DOC","TXT","DAT"] } end |
Instance Method Details
#matching_score ⇒ Object
make sure if we match, we override CMD
13 14 15 |
# File 'lib/native_file_types/trs80/Trs80Text.rb', line 13 def matching_score Trs80Cmd.matching_score+1 end |
#to_text ⇒ Object
17 18 19 |
# File 'lib/native_file_types/trs80/Trs80Text.rb', line 17 def to_text contents end |