Class: PSD::LayerNameSource
- Defined in:
- lib/psd/layer/info/layer_name_source.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Attributes inherited from LayerInfo
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from LayerInfo
Constructor Details
This class inherits a constructor from PSD::LayerInfo
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
9 10 11 |
# File 'lib/psd/layer/info/layer_name_source.rb', line 9 def id @id end |
Class Method Details
.should_parse?(key) ⇒ Boolean
5 6 7 |
# File 'lib/psd/layer/info/layer_name_source.rb', line 5 def self.should_parse?(key) key == 'lnsr' end |
Instance Method Details
#parse ⇒ Object
11 12 13 14 |
# File 'lib/psd/layer/info/layer_name_source.rb', line 11 def parse @id = @file.read_string(4) return self end |