Sha256: 28de44449b993a63b92e445cb7451185b7d4813259b4cf099236f9435c02a6e7
Contents?: true
Size: 659 Bytes
Versions: 8
Compression:
Stored size: 659 Bytes
Contents
# frozen_string_literal: true module Lutaml module XMI class RootDrop < Liquid::Drop def initialize(model, guidance = nil) # rubocop:disable Lint/MissingSuper @model = model @guidance = guidance @children_packages ||= packages.map do |pkg| [pkg, pkg.packages, pkg.packages.map(&:children_packages)] end.flatten.uniq end def name @model[:name] end def packages @model[:packages].map do |package| ::Lutaml::XMI::PackageDrop.new(package, @guidance) end end def children_packages @children_packages end end end end
Version data entries
8 entries across 8 versions & 1 rubygems