Class: PSD::TransparencyShapesLayer

Inherits:
LayerInfo
  • Object
show all
Defined in:
lib/psd/layer/info/transparency_shapes_layer.rb

Instance Attribute Summary collapse

Attributes inherited from LayerInfo

#data

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from LayerInfo

#initialize, #skip

Constructor Details

This class inherits a constructor from PSD::LayerInfo

Instance Attribute Details

#enabledObject (readonly)

Returns the value of attribute enabled


9
10
11
# File 'lib/psd/layer/info/transparency_shapes_layer.rb', line 9

def enabled
  @enabled
end

Class Method Details

.should_parse?(key) ⇒ Boolean

Returns:

  • (Boolean)

5
6
7
# File 'lib/psd/layer/info/transparency_shapes_layer.rb', line 5

def self.should_parse?(key)
  key == 'tsly'
end

Instance Method Details

#parseObject


11
12
13
14
# File 'lib/psd/layer/info/transparency_shapes_layer.rb', line 11

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