Class: PSD::Threshold
- Defined in:
- lib/psd/layer/info/threshold.rb
Instance Attribute Summary collapse
-
#level ⇒ Object
readonly
Returns the value of attribute level.
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
#level ⇒ Object (readonly)
Returns the value of attribute level.
9 10 11 |
# File 'lib/psd/layer/info/threshold.rb', line 9 def level @level end |
Class Method Details
.should_parse?(key) ⇒ Boolean
5 6 7 |
# File 'lib/psd/layer/info/threshold.rb', line 5 def self.should_parse?(key) key == 'thrs' end |
Instance Method Details
#parse ⇒ Object
11 12 13 14 |
# File 'lib/psd/layer/info/threshold.rb', line 11 def parse @level = @file.read_short @file.seek 2, IO::SEEK_CUR # Padding? end |