Sha256: 04bc87078d10cf1c758e55fc0cd0a91aa32976913f00c8070db6520cc3941166
Contents?: true
Size: 879 Bytes
Versions: 4
Compression:
Stored size: 879 Bytes
Contents
# frozen_string_literal: true module ConvenientService module Support module DependencyContainer module Commands class AssertValidContainer < Support::Command ## # @!attribute [r] container # @return [Module] # attr_reader :container ## # @param container [Module] # @return [void] # def initialize(container:) @container = container end ## # @return [void] # @raise [ConvenientService::Support::DependencyContainer::Exceptions::NotExportableModule] # def call ::ConvenientService.raise Exceptions::NotExportableModule.new(mod: container) unless Utils::Module.include_module?(container, DependencyContainer::Export) end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems