Use endless method definition in `UseCase::Base`
Co-authored-by: Georg Gadinger <nilsding@nilsding.org>
This commit is contained in:
parent
9ecbab9ddd
commit
2dac4c09ed
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue