Class: ROM::RelationRegistry Private

Inherits:
Registry show all
Defined in:
lib/rom/relation_registry.rb

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

Instance Attribute Summary

Attributes inherited from Registry

#cache, #elements

Instance Method Summary collapse

Methods inherited from Registry

#each, element_not_found_error, #fetch, #key?, #map, #merge, new, #respond_to_missing?, #to_hash

Methods included from Initializer

extended

Constructor Details

#initialize(elements = {}, options = {}) {|_self, elements| ... } ⇒ RelationRegistry

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.

Returns a new instance of RelationRegistry.

Yields:

Yield Parameters:



7
8
9
10
# File 'lib/rom/relation_registry.rb', line 7

def initialize(elements = {}, options = {})
  super
  yield(self, elements) if block_given?
end

Dynamic Method Handling

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