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
extend Dry::Initializer
def self.call(...)
new(...).call
end
def self.call(...) = new(...).call
def call
raise NotImplementedError
end
def call = raise NotImplementedError
end
end