Sha256: 04cd0029374e25611494a46a059c82266a16548486be48704796618c446df40f

Contents?: true

Size: 228 Bytes

Versions: 11

Compression:

Stored size: 228 Bytes

Contents

# frozen_string_literal: true

module Pipeable
  module Steps
    # Wraps Dry Monads `#bind` method as a step.
    class Bind < Abstract
      def call(result) = result.bind { |object| base_block.call object }
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
pipeable-1.1.0 lib/pipeable/steps/bind.rb
pipeable-1.0.0 lib/pipeable/steps/bind.rb
pipeable-0.14.0 lib/pipeable/steps/bind.rb
pipeable-0.13.0 lib/pipeable/steps/bind.rb
pipeable-0.12.0 lib/pipeable/steps/bind.rb
pipeable-0.11.0 lib/pipeable/steps/bind.rb
pipeable-0.10.0 lib/pipeable/steps/bind.rb
pipeable-0.9.1 lib/pipeable/steps/bind.rb
pipeable-0.9.0 lib/pipeable/steps/bind.rb
pipeable-0.8.0 lib/pipeable/steps/bind.rb
pipeable-0.7.0 lib/pipeable/steps/bind.rb