Sha256: 1f8dbcc3f4800f33bbd33f31e7f958e56ec19e1b1317e5bcdc1e3e60003b42c1

Contents?: true

Size: 204 Bytes

Versions: 1

Compression:

Stored size: 204 Bytes

Contents

module Dry
  module Logic
    class Rule::Each < Rule::Value
      def apply(input)
        input.map { |element| predicate.(element) }
      end

      def type
        :each
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dry-logic-0.2.0 lib/dry/logic/rule/each.rb