Sha256: 59f4516c0547c953d4175f39a545edbaeb3656620c3aed52324f29a6eba95c13
Contents?: true
Size: 313 Bytes
Versions: 13
Compression:
Stored size: 313 Bytes
Contents
# frozen_string_literal: true require "dry/schema/path" module Dry module Schema class Path # @api private def multi_value? last.is_a?(Array) end # @api private def expand to_a[0..-2].product(last).map { |spec| self.class[spec] } end end end end
Version data entries
13 entries across 13 versions & 1 rubygems