Class: ROM::Registries::Mappers
- Includes:
- Nestable
- Defined in:
- lib/rom/registries/mappers.rb
Instance Method Summary collapse
- #fetch(key, &block) ⇒ Object (also: #[]) included from Nestable
- #import(mappers) ⇒ Object private
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ROM::Registries::Root
Instance Method Details
#fetch(key, &block) ⇒ Object Also known as: [] Originally defined in module Nestable
#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 |