class PSD class Resource class Section class LayerComps < Section def self.id; 1065; end def self.name; :layer_comps; end def parse # Descriptor version @file.seek 4, IO::SEEK_CUR @data = Descriptor.new(@file).parse @resource.data = self end def names @data['list'].map { |c| c['Nm '] } end def [](val) @data[val] end end end end end