Class: PSD::Resource::Section::SavedPath

Inherits:
Base
  • Object
show all
Defined in:
lib/psd/resources/saved_path.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize, name, #name, #resource_id, resource_id

Constructor Details

This class inherits a constructor from PSD::Resource::Section::Base

Instance Method Details

#parseObject



7
8
9
10
11
12
13
14
15
# File 'lib/psd/resources/saved_path.rb', line 7

def parse
  paths = []
  record_count = @resource.size / 26
  record_count.times do
    paths << PathRecord.new(@file)
  end

  @resource.data = paths
end