Module: ConvenientService::Support::AbstractMethod
- Includes:
- Concern
- Included in:
- Core::Entities::Config::Entities::MethodMiddlewares::Entities::Middlewares::Base::Concern::InstanceMethods, Core::Entities::Config::Entities::MethodMiddlewares::Entities::Middlewares::Chain::Concern::InstanceMethods, RSpec::Matchers::Classes::Results::Base, RSpec::Matchers::Classes::Results::Base::Entities::Printers::Base, ConvenientService::Service::Plugins::CanHaveConnectedSteps::Entities::Expressions::Base, ConvenientService::Service::Plugins::CanHaveSteps::Entities::Method::Entities::Callers::Base, ConvenientService::Service::Plugins::CanHaveSteps::Entities::Method::Entities::Directions::Base, ConvenientService::Service::Plugins::CanHaveSteps::Entities::Method::Entities::Factories::Base, Cache::Entities::Caches::Base, Castable
- Defined in:
- lib/convenient_service/support/abstract_method.rb,
lib/convenient_service/support/abstract_method/exceptions.rb
Defined Under Namespace
Modules: Exceptions
Class Method Summary collapse
Class Method Details
.abstract_method(*names) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/convenient_service/support/abstract_method.rb', line 11 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 |