Module: PSD::Layer::Name
- Included in:
- PSD::Layer
- Defined in:
- lib/psd/layer/name.rb
Instance Method Summary collapse
-
#name ⇒ Object
Gets the name of this layer.
Instance Method Details
#name ⇒ Object
Gets the name of this layer. If the PSD file is from an even remotely recent version of Photoshop, this data is stored as extra layer info and as a UTF-16 name. Otherwise, it’s stored in a legacy block.
7 8 9 10 11 12 13 |
# File 'lib/psd/layer/name.rb', line 7 def name if @adjustments.has_key?(:name) return @adjustments[:name].data end return @legacy_name end |