Sha256: d5ade931e8186eeda43828f63ba8f32acb82076bb687d032ff1a1b5b034f8598

Contents?: true

Size: 420 Bytes

Versions: 18

Compression:

Stored size: 420 Bytes

Contents

class PSD
  # Parent class for all of the extra layer info.
  class LayerInfo
    attr_reader :data

    def initialize(layer, length)
      @layer = layer
      @file = layer.file
      @length = length
      @section_end = @file.tell + @length
      @data = {}
    end

    def skip
      @file.seek @section_end
    end

    # Override this - default seeks to end of section
    def parse
      skip
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
psd-3.9.0 lib/psd/layer_info.rb
psd-3.8.0 lib/psd/layer_info.rb
psd-3.7.0 lib/psd/layer_info.rb
psd-3.6.0 lib/psd/layer_info.rb
psd-3.5.0 lib/psd/layer_info.rb
psd-3.4.0 lib/psd/layer_info.rb
psd-3.3.3 lib/psd/layer_info.rb
psd-3.3.2 lib/psd/layer_info.rb
psd-3.3.1 lib/psd/layer_info.rb
psd-3.2.4 lib/psd/layer_info.rb
psd-3.2.3 lib/psd/layer_info.rb
psd-3.2.2 lib/psd/layer_info.rb
psd-3.2.1 lib/psd/layer_info.rb
psd-3.2.0 lib/psd/layer_info.rb
psd-3.1.5 lib/psd/layer_info.rb
psd-3.1.4 lib/psd/layer_info.rb
psd-3.1.3 lib/psd/layer_info.rb
psd-3.1.2 lib/psd/layer_info.rb