class ROM::Repository::RelationReader
@api private
Public Class Methods
Source
# File lib/rom/repository/relation_reader.rb, line 67 def initialize(relations:, cache:, root: Undefined) super() add_readers(relations, cache, root) end
@api private
Calls superclass method
Public Instance Methods
Source
# File lib/rom/repository/relation_reader.rb, line 74 def add_readers(relations, cache, root) include cache.fetch_or_store(:relation_readers) { Readers.new(relations) } unless Undefined.equal?(root) define_method(:root) { |**kwargs| public_send(root, **kwargs) } end end
@api private