Retrospring/lib/use_case/base.rb

14 lines
206 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2022-07-23 01:02:06 -07:00
require "dry-initializer"
module UseCase
class Base
extend Dry::Initializer
def self.call(...) = new(...).call
def call = raise NotImplementedError
end
2022-07-23 01:02:06 -07:00
end