method

root

ruby latest stable - Class: REXML::Document
root()
public

@return the root Element of the document, or nil if this document has no children.