Use endless method definition in `UseCase::Base`

Co-authored-by: Georg Gadinger <nilsding@nilsding.org>
This commit is contained in:
Karina Kwiatek 2022-07-23 11:59:01 +02:00
parent 9ecbab9ddd
commit 2dac4c09ed
1 changed files with 2 additions and 6 deletions

View File

@ -8,12 +8,8 @@ module UseCase
class Base class Base
extend Dry::Initializer extend Dry::Initializer
def self.call(...) def self.call(...) = new(...).call
new(...).call
end
def call def call = raise NotImplementedError
raise NotImplementedError
end
end end
end end