lib/psd/layer_info/placed_layer.rb in psd-2.1.2 vs lib/psd/layer_info/placed_layer.rb in psd-3.1.2
- old
+ new
@@ -1,9 +1,11 @@
-require_relative '../layer_info'
+require 'psd/layer_info'
class PSD
class PlacedLayer < LayerInfo
- @key = 'SoLd'
+ def self.should_parse?(key)
+ key == 'SoLd'
+ end
def parse
# Useless id/version info
@file.seek 12, IO::SEEK_CUR
@data = Descriptor.new(@file).parse
\ No newline at end of file