Class: ProDos

Inherits:
FileSystem show all
Defined in:
lib/file_systems/ProDos.rb

Overview

Disk image in ProDOS format

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from FileSystem

all_file_systems, code_for_tests, compatability_score, is_valid_file_system_if, matching_score, non_matching_score

Methods included from SubclassTracking

extended

Instance Attribute Details

#volume_nameObject (readonly)

Returns the value of attribute volume_name.



12
13
14
# File 'lib/file_systems/ProDos.rb', line 12

def volume_name
  @volume_name
end

Class Method Details

.files(file_system_image) ⇒ Object

returns a FileContainer of of the native files contained in file system image



29
30
31
32
33
34
35
# File 'lib/file_systems/ProDos.rb', line 29

def self.files(file_system_image)  
  files=FileContainer.new
  ProDos.read_catalog(file_system_image,2,"").flatten.each do |file|
    files<<file
  end
  files
end

.host_systemObject



13
14
15
# File 'lib/file_systems/ProDos.rb', line 13

def self.host_system
  Apple2
end