Sha256: 11c8c9d02e65eb3ac68c6a953ff99e407652d5192c8b12f893945986e32b7ea8
Contents?: true
Size: 226 Bytes
Versions: 4
Compression:
Stored size: 226 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 { |input| base_block.call input } end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
pipeable-0.4.0 | lib/pipeable/steps/bind.rb |
pipeable-0.3.0 | lib/pipeable/steps/bind.rb |
pipeable-0.2.0 | lib/pipeable/steps/bind.rb |
pipeable-0.1.0 | lib/pipeable/steps/bind.rb |