method

root

root()
public

Returns the root node. A Document may only have one root node: http://yaml.org/spec/1.1/#id898031