Module: ConvenientService::Support::AbstractMethod Private

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Since:

  • 1.0.0

Defined Under Namespace

Modules: Exceptions

Class Method Summary collapse

Methods included from Concern

included

Class Method Details

.abstract_method(*names) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 1.0.0



16
17
18
19
20
21
22
# File 'lib/convenient_service/support/abstract_method.rb', line 16

def abstract_method(*names)
  names.each do |name|
    define_method(name) do |*args, **kwargs, &block|
      ::ConvenientService.raise Exceptions::AbstractMethodNotOverridden.new(instance: self, method: name)
    end
  end
end