Sha256: 38de65f382c327b801a1bc70c5774b1b83db0d6328e1a62a5aaa76d941991a39
Contents?: true
Size: 413 Bytes
Versions: 2
Compression:
Stored size: 413 Bytes
Contents
module Dry module Transaction module StepAdapters # @api private class Base attr_reader :operation attr_reader :options def initialize(operation, options) @operation = operation @options = options end def arity operation.is_a?(Proc) ? operation.arity : operation.method(:call).arity end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dry-transaction-0.5.0 | lib/dry/transaction/step_adapters/base.rb |
dry-transaction-0.4.0 | lib/dry/transaction/step_adapters/base.rb |