Class: Lutaml::Lml::AssociationLabelResolver

Inherits:
Object
  • Object
show all
Defined in:
lib/lutaml/lml/association_label_resolver.rb

Instance Method Summary collapse

Instance Method Details

#enrich(document) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/lutaml/lml/association_label_resolver.rb', line 6

def enrich(document)
  class_index = build_class_index(document)
  document.associations.each do |assoc|
    enrich_owner_end(assoc, class_index)
    enrich_member_end(assoc, class_index)
  end
  document
end