Sha256: 0385d16540bc885cd2b114d6fb4c472f96d27506b2c40ba0ffa582dd2e9cd092

Contents?: true

Size: 443 Bytes

Versions: 24

Compression:

Stored size: 443 Bytes

Contents

class PSD
  class Resource
    class Section
      def self.factory(file, resource)
        Section.constants.each do |c|
          section = Section.const_get(c)
          next unless section.id == resource.id

          section.new(file, resource).parse
          return section.name
        end

        return nil
      end

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

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
bench9000-0.1 vendor/psd.rb/lib/psd/resource_section.rb
psd-2.1.2 lib/psd/resource_section.rb
psd-2.1.1 lib/psd/resource_section.rb
psd-2.1.0 lib/psd/resource_section.rb
psd-2.0.0 lib/psd/resource_section.rb
psd-1.5.0 lib/psd/resource_section.rb
psd-1.4.5 lib/psd/resource_section.rb
psd-1.4.4 lib/psd/resource_section.rb
psd-1.4.3 lib/psd/resource_section.rb
psd-1.4.2 lib/psd/resource_section.rb
psd-1.4.1 lib/psd/resource_section.rb
psd-1.4.0 lib/psd/resource_section.rb
psd-1.3.3 lib/psd/resource_section.rb
psd-1.3.2 lib/psd/resource_section.rb
psd-1.3.0 lib/psd/resource_section.rb
psd-1.2.2 lib/psd/resource_section.rb
psd-1.2.1 lib/psd/resource_section.rb
psd-1.2.0 lib/psd/resource_section.rb
psd-1.1.1 lib/psd/resource_section.rb
psd-1.1.0 lib/psd/resource_section.rb