Sha256: 9c41447750e7a24e7e61ca972fb07aceda6a5db5a98cac0b678ef20bb55cf788

Contents?: true

Size: 263 Bytes

Versions: 1

Compression:

Stored size: 263 Bytes

Contents

module Xpect
  # TODO: Add tests
  class Every
    def initialize(item_spec)
      @item_spec = item_spec
    end

    def conform!(data:, path: [])
      data.map do |val|
        Xpect::Type.process(@item_spec, @item_spec, val, path)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
xpect-0.1.0 lib/xpect/every.rb