method
root
root()
public
Hide source
# File lib/rexml/element.rb, line 124 def root return elements[1] if self.kind_of? Document return self if parent.kind_of? Document or parent.nil? return parent.root end