lib/psd/layer_info/locked.rb in psd-2.1.2 vs lib/psd/layer_info/locked.rb in psd-3.1.2
- old
+ new
@@ -1,9 +1,11 @@
-require_relative '../layer_info'
+require 'psd/layer_info'
class PSD
class Locked < LayerInfo
- @key = 'lspf'
+ def self.should_parse?(key)
+ key == 'lspf'
+ end
attr_reader :all_locked, :transparency_locked, :composite_locked, :position_locked
def parse
locked = @file.read_int
\ No newline at end of file