Sha256: 9534fb40f334ec85d672ce5b4886960ceaf8cb53682049b73c7b3dc5502a5f6b

Contents?: true

Size: 270 Bytes

Versions: 4

Compression:

Stored size: 270 Bytes

Contents

require 'psd/layer_info'

class PSD
  class TransparencyShapesLayer < LayerInfo
    def self.should_parse?(key)
      key == 'tsly'
    end

    attr_reader :enabled

    def parse
      @enabled = @file.read_byte == 1
      @file.seek 3, IO::SEEK_CUR
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
psd-3.9.0 lib/psd/layer/info/transparency_shapes_layer.rb
psd-3.8.0 lib/psd/layer/info/transparency_shapes_layer.rb
psd-3.7.0 lib/psd/layer/info/transparency_shapes_layer.rb
psd-3.6.0 lib/psd/layer/info/transparency_shapes_layer.rb