Sha256: 036cacd00d0699ff0c050d7082723a161fea4b44c0c9430b7195046b615c50c9
Contents?: true
Size: 653 Bytes
Versions: 2
Compression:
Stored size: 653 Bytes
Contents
# frozen_string_literal: true require "dry/transaction/step" require "dry/transaction/dsl" require "dry/transaction/instance_methods" require "dry/transaction/operation_resolver" module Dry module Transaction class Builder < Module attr_reader :dsl_mod attr_reader :resolver_mod def initialize(step_adapters:, container: nil) super() @dsl_mod = DSL.new(step_adapters: step_adapters) @resolver_mod = OperationResolver.new(container) end def included(klass) klass.extend(dsl_mod) klass.include(InstanceMethods) klass.prepend(resolver_mod) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dry-transaction-0.16.0 | lib/dry/transaction/builder.rb |
dry-transaction-0.15.0 | lib/dry/transaction/builder.rb |