lib/psd/layer_info/reference_point.rb in psd-2.1.2 vs lib/psd/layer_info/reference_point.rb in psd-3.1.2
- old
+ new
@@ -1,9 +1,11 @@
-require_relative '../layer_info'
+require 'psd/layer_info'
class PSD
class ReferencePoint < LayerInfo
- @key = 'fxrp'
+ def self.should_parse?(key)
+ key == 'fxrp'
+ end
attr_reader :x, :y
def parse
@x = @file.read_double
\ No newline at end of file