Sha256: 89c2111e72bf552e47115675b69fd3a780736f81390c27448bb8f9f2db25d404
Contents?: true
Size: 851 Bytes
Versions: 20
Compression:
Stored size: 851 Bytes
Contents
module Foobara class CommandRegistry class ExposedDomain foobara_instances_are_namespaces! include TruncatedInspect include IsManifestable attr_accessor :domain_module def initialize(domain_module) self.domain_module = domain_module self.scoped_path = domain_module.scoped_path end # TODO: unable to address types here so it is handled as a hack higher up... def foobara_manifest(to_include:) domain_manifest = domain_module.foobara_manifest(to_include: Set.new) mode = Foobara::Namespace::LookupMode::DIRECT commands = foobara_all_command(mode:).map(&:foobara_manifest_reference).sort domain_manifest.merge(commands:) end def foobara_manifest_reference domain_module.foobara_manifest_reference end end end end
Version data entries
20 entries across 20 versions & 1 rubygems