Class: Lutaml::Uml::Package

Inherits:
TopElement
  • Object
show all
Defined in:
lib/lutaml/uml/package.rb

Direct Known Subclasses

Model

Instance Method Summary collapse

Methods inherited from TopElement

#definition_from_yaml, #definition_to_yaml, #full_name_from_yaml, #full_name_to_yaml

Instance Method Details

#children_packagesObject



30
31
32
33
34
# File 'lib/lutaml/uml/package.rb', line 30

def children_packages
  packages.map do |pkg|
    [pkg, pkg.packages, pkg.packages.map(&:children_packages)]
  end.flatten.uniq
end