Retrospring/lib/use_case/base.rb

20 lines
263 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
end
def call
raise NotImplementedError
end
end
end