Specs for various XPath::Evaluator helper methods.
This commit is contained in:
1 parent
1f9d2ede95
commit
ec08b41737
3 files changed
+103
-2
No files matched your search
+3
-2
@@ -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
|
||||
|
||||
##
|
||||
|
||||
Reference in new issue
Block a user