Support for the XPath "!=" operator.

This commit is contained in:
Yorick Peterse committed 2014-09-01 20:48:11 +02:00
1 parent 9e5f15787d
commit e1d9e62b72
2 files changed
+62

No files matched your search

+12
View File
@@ -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.
#