+ @globals[node.name] = x unless x.nil?
+ end
+
+ # Convert SASS maps and lists to ruby equivalents that are actually usable.
+ def rubify_result(val)
+ case val
+ when Sass::Script::Value::Map
+ val.to_h.each_with_object({}) do |(k, v), h|
+ h[k.to_s.to_sym] = rubify_result(v)
+ end
+ when Sass::Script::Value::List
+ val.to_a.map { |v| rubify_result(v) }
+ else
+ val