# File lib/hashery/path_hash.rb, line 31 def initialize(hsh={}) raise ArgumentError, "must be a hash or array of slashed values" unless hsh.is_a?(Hash) || hsh.is_a?(Array) @constructor = hsh.is_a?(Hash) ? hsh.class : Hash @flat = flatten_to_hash(hsh) end