Method: Dry::Schema::Path#&

Defined in:
lib/dry/schema/path.rb

#&(other) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



88
89
90
91
92
# File 'lib/dry/schema/path.rb', line 88

def &(other)
  self.class.new(
    keys.take_while.with_index { |key, index| other.keys[index].eql?(key) }
  )
end