method

root

ruby latest stable - Class: Psych::Nodes::Document
root()
public

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