# frozen_string_literal: true class Mockolate::Types::Hash < Mockolate::Types # Public Methods # name: Name of the key specified in params block # has_children: Returns children elements of hash # # Private Methods # _parse_child Returns array with parsed children def parse return name => {}.merge(*_parse_child) if name {}.merge(*_parse_child) end end