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
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.
7 8 9 |
# File 'lib/psd/layer_info/reference_point.rb', line 7 def x @x end |
#y ⇒ Object (readonly)
Returns the value of attribute y.
7 8 9 |
# File 'lib/psd/layer_info/reference_point.rb', line 7 def y @y end |
Instance Method Details
#parse ⇒ Object
9 10 11 12 13 14 |
# File 'lib/psd/layer_info/reference_point.rb', line 9 def parse @x = @file.read_double @y = @file.read_double return self end |