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)


77
78
79
80
81
82
83
# File 'lib/convenient_service/support/dependency_container/exceptions.rb', line 77

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

  initialize(message)
end