Sha256: e65c0c987095422a052e6a7b3486b24514dbe88d806ee70090fa96f1affcf2ba

Contents?: true

Size: 646 Bytes

Versions: 8

Compression:

Stored size: 646 Bytes

Contents

class PSD
  class Resource
    module Section
      class Base
        def self.resource_id(id = nil)
          @resource_id = id unless id.nil?
          @resource_id
        end

        def self.name(name = nil)
          @name = name unless name.nil?
          @name
        end

        def initialize(file, resource)
          @file = file
          @resource = resource
        end

        def resource_id; self.class.resource_id; end
        def name; self.class.name; end
      end
    end
  end
end

require 'psd/resources/guides'
require 'psd/resources/layer_comps'
require 'psd/resources/slices'
require 'psd/resources/xmp_metadata'

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
psd-3.8.0 lib/psd/resources/base.rb
psd-3.7.0 lib/psd/resources/base.rb
psd-3.6.0 lib/psd/resources/base.rb
psd-3.5.0 lib/psd/resources/base.rb
psd-3.4.0 lib/psd/resources/base.rb
psd-3.3.3 lib/psd/resources/base.rb
psd-3.3.2 lib/psd/resources/base.rb
psd-3.3.1 lib/psd/resources/base.rb