mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-15 20:19:59 +01:00
Use endless method definition in UseCase::Base
Co-authored-by: Georg Gadinger <nilsding@nilsding.org>
This commit is contained in:
parent
9ecbab9ddd
commit
2dac4c09ed
1 changed files with 2 additions and 6 deletions
|
@ -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 a new issue