Support for the XPath "!=" operator.
This commit is contained in:
1 parent
9e5f15787d
commit
e1d9e62b72
2 files changed
+62
No files matched your search
@@ -742,6 +742,18 @@ module Oga
|
||||
return left == right
|
||||
end
|
||||
|
||||
##
|
||||
# Processes the `!=` operator.
|
||||
#
|
||||
# This operator does the exact opposite of the `=` operator. See {#on_eq}
|
||||
# for more information.
|
||||
#
|
||||
# @see [#on_eq]
|
||||
#
|
||||
def on_neq(ast_node, context)
|
||||
return !on_eq(ast_node, context)
|
||||
end
|
||||
|
||||
##
|
||||
# Delegates function calls to specific handlers.
|
||||
#
|
||||
|
||||
Reference in new issue
Block a user