Specs for various XPath::Evaluator helper methods.

This commit is contained in:
Yorick Peterse committed 2014-07-22 21:04:09 +02:00
1 parent 1f9d2ede95
commit ec08b41737
3 files changed
+103 -2

No files matched your search

+3 -2
View File
@@ -49,12 +49,13 @@ module Oga
end
##
# Returns the parent node of the current node.
# Returns the parent node of the current node. If there is no parent node
# `nil` is returned instead.
#
# @return [Oga::XML::Node]
#
def parent
return node_set.owner
return node_set ? node_set.owner : nil
end
##