asYamlNode method

YamlNode asYamlNode()

Implementation

YamlNode asYamlNode() {
  if (_document is Map) return YamlMap.wrap(_document);
  if (_document is List) return YamlList.wrap(_document);
  return YamlScalar.wrap(_document);
}