Added XML::Document#root_node
This commit is contained in:
1 parent
a7744b7a5c
commit
94f7f85dc3
2 files changed
+20
No files matched your search
@@ -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.
|
||||
#
|
||||
|
||||
Reference in new issue
Block a user