Module: ROM::Finalize::FinalizeRelations::BuildRelationReaders

Defined in:
core/lib/rom/setup/finalize/finalize_relations.rb

Class Method Summary collapse

Class Method Details

.build(relations) ⇒ Object



13
14
15
16
17
18
19
20
21
# File 'core/lib/rom/setup/finalize/finalize_relations.rb', line 13

def self.build(relations)
  Module.new do
    relations.each do |name|
      define_method(name) do
        __registry__[name]
      end
    end
  end
end