Sha256: 5e86fa8d6b46078d0611344b0ac6c6d07ba9be403223ffc1ea5c7b9b1c0d7f95

Contents?: true

Size: 394 Bytes

Versions: 1

Compression:

Stored size: 394 Bytes

Contents

# frozen_string_literal: true

require_relative "nestable"

module ROM
  module Registries
    class Mappers < Root
      prepend Nestable

      # @api private
      def import(mappers)
        container.namespace(namespace) do |namespace|
          mappers.each do |name, mapper|
            namespace.register(name, mapper)
          end
        end
        self
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rom-6.0.0.alpha1 lib/rom/registries/mappers.rb