Sha256: 17b1e4f4214c4654ce1ec931c15711fc74df9410484bb0041aa32f6adfd284de

Contents?: true

Size: 382 Bytes

Versions: 2

Compression:

Stored size: 382 Bytes

Contents

# frozen_string_literal: true

require 'dry/schema/macros/dsl'

module Dry
  module Schema
    module Macros
      # Macro used to specify predicates for each element of an array
      #
      # @api public
      class Each < DSL
        # @api private
        def to_ast(*)
          [:each, trace.to_ast]
        end
        alias_method :ast, :to_ast
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dry-schema-0.4.0 lib/dry/schema/macros/each.rb
dry-schema-0.3.0 lib/dry/schema/macros/each.rb