Class: ROM::Registries::Mappers

Inherits:
Root
  • Object
show all
Includes:
Nestable
Defined in:
lib/rom/registries/mappers.rb

Instance Method Summary collapse

Methods included from Nestable

#fetch

Methods inherited from Root

#build, #disconnect, #each, #empty?, #fetch, #handler, #ids, #infer, #inspect, #key?, #keys, #map_with, #plugins, #provider, #provider_type, #scoped, #trigger

Methods included from Initializer

extended

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ROM::Registries::Root

Instance Method Details

#import(mappers) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



11
12
13
14
15
16
17
18
# File 'lib/rom/registries/mappers.rb', line 11

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