Exception: ConvenientService::Support::DependencyContainer::Exceptions::NotExportableModule

Inherits:
Exception
  • Object
show all
Defined in:
lib/convenient_service/support/dependency_container/exceptions.rb

Instance Method Summary collapse

Methods inherited from Exception

new

Instance Method Details

#initialize_with_kwargs(mod:) ⇒ void

This method returns an undefined value.

Parameters:

  • mod (Module)


37
38
39
40
41
42
43
44
45
# File 'lib/convenient_service/support/dependency_container/exceptions.rb', line 37

def initialize_with_kwargs(mod:)
  message = <<~TEXT
    Module `#{mod}` can NOT export methods.

    Did you forget to include `ConvenientService::DependencyContainer::Export` into it?
  TEXT

  initialize(message)
end