Exception: ConvenientService::Support::DependencyContainer::Exceptions::NotExportedMethod
- Inherits:
-
Exception
- Object
- StandardError
- Exception
- ConvenientService::Support::DependencyContainer::Exceptions::NotExportedMethod
- Defined in:
- lib/convenient_service/support/dependency_container/exceptions.rb
Instance Method Summary collapse
Methods inherited from Exception
Instance Method Details
#initialize_with_kwargs(method_name:, method_scope:, mod:) ⇒ void
This method returns an undefined value.
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
# File 'lib/convenient_service/support/dependency_container/exceptions.rb', line 55 def initialize_with_kwargs(method_name:, method_scope:, mod:) = " Module `\#{mod}` does NOT export method `\#{method_name}` with `\#{method_scope}` scope.\n\n Did you forget to export it from `\#{mod}`? For example:\n\n module \#{mod}\n export \#{method_name}, scope: :\#{method_scope} do |*args, **kwargs, &block|\n # ...\n end\n end\n TEXT\n\n initialize(message)\nend\n" |