Exception: ConvenientService::Support::DependencyContainer::Exceptions::NotModule

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(klass:) ⇒ void

This method returns an undefined value.

Parameters:

  • klass (Class)


82
83
84
85
86
87
88
# File 'lib/convenient_service/support/dependency_container/exceptions.rb', line 82

def initialize_with_kwargs(klass:)
  message = <<~TEXT
    `#{klass.inspect}` is NOT a Module.
  TEXT

  initialize(message)
end