Codeminer42/cm42-central

View on GitHub
app/operations/operation.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Operation
  def self.included(base)
    base.extend(ClassMethods)
    base.include(Dry::Monads[:result, :do])
  end

  module ClassMethods
    def call(**args)
      new(**args).call
    end
  end
end