Sha256: eab8f25eadd77057d12e799958792879ae8a7e6f18891168aedbd44772da3d66

Contents?: true

Size: 361 Bytes

Versions: 4

Compression:

Stored size: 361 Bytes

Contents

class BenchmarkCLI
  module Examples
    module APlusB
      class FlowsDo
        include Flows::Result::Helpers

        extend Flows::Result::Do

        do_notation(:call)
        def call(a:, b:)
          ok_data(yield do_call(a, b))
        end

        private

        def do_call(a, b)
          ok_data(a + b)
        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/a_plus_b/flows_do.rb
flows-0.5.1 bin/benchmark_cli/examples/a_plus_b/flows_do.rb
flows-0.5.0 bin/benchmark_cli/examples/a_plus_b/flows_do.rb
flows-0.4.0 bin/benchmark_cli/examples/a_plus_b/flows_do.rb