lib/psd/layer_info.rb in psd-1.3.3 vs lib/psd/layer_info.rb in psd-1.4.0

- old
+ new

@@ -5,11 +5,12 @@ # The value of the key as used in the PSD format. class << self; attr_accessor :key; end @key = "" - def initialize(file, length) - @file = file + def initialize(layer, length) + @layer = layer + @file = layer.file @length = length @section_end = @file.tell + @length @data = {} end \ No newline at end of file