Sha256: 63a1bd27cfdf8fe89a4aff8073cf05d5352b1b05d8479edd146cf716780e8050

Contents?: true

Size: 922 Bytes

Versions: 4

Compression:

Stored size: 922 Bytes

Contents

require 'dry/transaction'

class BenchmarkCLI
  module Examples
    module TenSteps
      class DryTransaction
        include Dry::Transaction

        step :s1
        step :s2
        step :s3
        step :s4
        step :s5
        step :s6
        step :s7
        step :s8
        step :s9
        step :s10

        private

        def s1(_x)
          Success(true)
        end

        def s2(_x)
          Success(true)
        end

        def s3(_x)
          Success(true)
        end

        def s4(_x)
          Success(true)
        end

        def s5(_x)
          Success(true)
        end

        def s6(_x)
          Success(true)
        end

        def s7(_x)
          Success(true)
        end

        def s8(_x)
          Success(true)
        end

        def s9(_x)
          Success(true)
        end

        def s10(_x)
          Success(true)
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
flows-0.6.0 bin/benchmark_cli/examples/ten_steps/dry_transaction.rb
flows-0.5.1 bin/benchmark_cli/examples/ten_steps/dry_transaction.rb
flows-0.5.0 bin/benchmark_cli/examples/ten_steps/dry_transaction.rb
flows-0.4.0 bin/benchmark_cli/examples/ten_steps/dry_transaction.rb