# File lib/ruby-vpi/xx.rb, line 400 400: def xx_parse_yaml_attributes string 401: #--{{{ 402: require "yaml" 403: string = string.to_s 404: string = "{" << string unless string =~ %r/^\s*[{]/o 405: string = string << "}" unless string =~ %r/[}]\s*$/o 406: obj = ::YAML::load string 407: raise ArgumentError, "<#{ obj.class }> not Hash!" unless Hash === obj 408: obj 409: #--}}} 410: end