class Dry::Schema::Path
def self.[](spec)
- Api: - private
Returns:
-
(Path)-
Parameters:
-
spec(Path, Symbol, String, Hash, Array) --
def self.[](spec) case spec when Symbol, Array new(Array[*spec]) when String new(spec.split(DOT).map(&:to_sym)) when Hash new(keys_from_hash(spec)) when Path spec else raise ArgumentError, '+spec+ must be either a Symbol, Array, Hash or a Path' end end