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
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue