retrospring/lib/use_case/base.rb
Karina Kwiatek 2dac4c09ed Use endless method definition in UseCase::Base
Co-authored-by: Georg Gadinger <nilsding@nilsding.org>
2022-07-23 12:06:24 +02:00

15 lines
239 B
Ruby

# frozen_string_literal: true
require "dry-initializer"
require "types"
require "errors"
module UseCase
class Base
extend Dry::Initializer
def self.call(...) = new(...).call
def call = raise NotImplementedError
end
end