Sha256: 055cea3f532e091d3c25c8ee7ac9f075d103871aa7f539f98a8e9674d8b647d3

Contents?: true

Size: 402 Bytes

Versions: 6

Compression:

Stored size: 402 Bytes

Contents

require_relative 'reader'
require_relative 'multi_register'

module Estratto
  module Layout
    class LayoutUndefinedError < StandardError; end
    class Factory

      def self.fabricate(layout_path)
        reader = Reader.new(layout_path)
        if reader.multiregister?
          MultiRegister.new(reader)
        else
          raise LayoutUndefinedError
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
estratto-1.0.5 lib/estratto/layout/factory.rb
estratto-1.0.4 lib/estratto/layout/factory.rb
estratto-1.0.3 lib/estratto/layout/factory.rb
estratto-1.0.2 lib/estratto/layout/factory.rb
estratto-1.0.1 lib/estratto/layout/factory.rb
estratto-1.0.0 lib/estratto/layout/factory.rb