Added XML::Document#root_node

This commit is contained in:
Yorick Peterse committed 2015-08-19 20:14:20 +02:00
1 parent a7744b7a5c
commit 94f7f85dc3
2 files changed
+20

No files matched your search

+12
View File
@@ -54,6 +54,18 @@ module Oga
end
end
##
# Returns self.
#
# This method exists to make this class compatible with Element, which in
# turn makes it easier to use both in the XPath compiler.
#
# @return [Oga::XML::Document]
#
def root_node
self
end
##
# Converts the document and its child nodes to XML.
#