Sha256: b20f1db03f7c2b4be4583c340ac1b8d5711da846d95177140f6adff3fb17bc9b
Contents?: true
Size: 446 Bytes
Versions: 16
Compression:
Stored size: 446 Bytes
Contents
# encoding: utf-8 module Synvert::Core # UnlessExistCondition checks if matching node doesn't exist in the node children. class Rewriter::UnlessExistCondition < Rewriter::Condition # check if none of child node matches the rules. def match? match = false @instance.current_node.recursive_children do |child_node| match = match || (child_node && child_node.match?(@rules)) end !match end end end
Version data entries
16 entries across 16 versions & 1 rubygems