Class: PSD::LayerInfo
- Inherits:
-
Object
- Object
- PSD::LayerInfo
- Defined in:
- lib/psd/layer_info.rb
Overview
Parent class for all of the extra layer info.
Direct Known Subclasses
BlackWhite, BlendClippingElements, BlendInteriorElements, BrightnessContrast, ChannelBlendingRestrictions, ChannelMixer, ColorBalance, ColorLookup, ContentGenerator, Curves, EffectsLayer, Exposure, FillOpacity, GradientFill, GradientMap, HueSaturation, Invert, Knockout, LayerEffects, LayerID, LayerMaskAsGlobalMask, LayerNameSource, LayerSectionDivider, Levels, Locked, MetadataSetting, NestedLayerDivider, ObjectEffects, Pattern, PatternFill, PhotoFilter, PlacedLayer, Posterize, ReferencePoint, SelectiveColor, SheetColor, SolidColor, Threshold, TransparencyShapesLayer, TypeTool, UnicodeName, VectorMask, VectorMaskAsGlobalMask, VectorOrigination, VectorStroke, VectorStrokeContent, Vibrance
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(layer, length) ⇒ LayerInfo
constructor
A new instance of LayerInfo.
-
#parse ⇒ Object
Override this - default seeks to end of section.
- #skip ⇒ Object
Constructor Details
#initialize(layer, length) ⇒ LayerInfo
Returns a new instance of LayerInfo.
6 7 8 9 10 11 12 |
# File 'lib/psd/layer_info.rb', line 6 def initialize(layer, length) @layer = layer @file = layer.file @length = length @section_end = @file.tell + @length @data = {} end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
4 5 6 |
# File 'lib/psd/layer_info.rb', line 4 def data @data end |
Instance Method Details
#parse ⇒ Object
Override this - default seeks to end of section
19 20 21 |
# File 'lib/psd/layer_info.rb', line 19 def parse skip end |
#skip ⇒ Object
14 15 16 |
# File 'lib/psd/layer_info.rb', line 14 def skip @file.seek @section_end end |