Sha256: e7df7cf60729f56d98c14671a4d2a4f4b4da05b902eb24d8604aed66a4c9da91

Contents?: true

Size: 223 Bytes

Versions: 5

Compression:

Stored size: 223 Bytes

Contents

module Dry
  module Logic
    class Rule::Each < Rule
      def call(input)
        Logic.Result(input, input.map { |element| predicate.(element) }, self)
      end

      def type
        :each
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
dry-logic-0.1.4 lib/dry/logic/rule/each.rb
dry-logic-0.1.3 lib/dry/logic/rule/each.rb
dry-logic-0.1.2 lib/dry/logic/rule/each.rb
dry-logic-0.1.1 lib/dry/logic/rule/each.rb
dry-logic-0.1.0 lib/dry/logic/rule/each.rb