Sha256: 6ccd8cd72f1482e69845dae7ff7610f876720ca2f5a95509398a622228b0dc0b
Contents?: true
Size: 436 Bytes
Versions: 9
Compression:
Stored size: 436 Bytes
Contents
require_relative 'container' require 'dry-transaction' module Main module Requests class Registrar attr_reader :container def initialize(container) @container = container end def define(identifier, &block) container.register(identifier, Dry.Transaction(container: container, &block)) end end def self.define(&block) yield(Registrar.new(Container)) end end end
Version data entries
9 entries across 9 versions & 1 rubygems