class Dry::Schema::Path

Public Instance Methods

expand() click to toggle source

@api private

# File lib/dry/validation/schema_ext.rb, line 14
def expand
  to_a[0..-2].product(last).map { |spec| self.class[spec] }
end
multi_value?() click to toggle source

@api private

# File lib/dry/validation/schema_ext.rb, line 9
def multi_value?
  last.is_a?(Array)
end