Class: PSD::ReferencePoint
- Defined in:
- lib/psd/layer/info/reference_point.rb
Instance Attribute Summary collapse
-
#x ⇒ Object
readonly
Returns the value of attribute x.
-
#y ⇒ Object
readonly
Returns the value of attribute y.
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
#x ⇒ Object (readonly)
Returns the value of attribute x.
9 10 11 |
# File 'lib/psd/layer/info/reference_point.rb', line 9 def x @x end |
#y ⇒ Object (readonly)
Returns the value of attribute y.
9 10 11 |
# File 'lib/psd/layer/info/reference_point.rb', line 9 def y @y end |
Class Method Details
.should_parse?(key) ⇒ Boolean
5 6 7 |
# File 'lib/psd/layer/info/reference_point.rb', line 5 def self.should_parse?(key) key == 'fxrp' end |
Instance Method Details
#parse ⇒ Object
11 12 13 14 15 16 |
# File 'lib/psd/layer/info/reference_point.rb', line 11 def parse @x = @file.read_double @y = @file.read_double return self end |