# 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

# 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

Use endless method definition in `UseCase::Base`
Use endless method definition in `UseCase::Base`

Co-authored-by: Georg Gadinger <9e8f1a26fbf401b045347f083556ffd7c0b25a58@nilsding.org>