Sha256: 3845b02b201e529bdad6896ccf967a47f07af301f436b926eea7b956a2d38d89
Contents?: true
Size: 426 Bytes
Versions: 16
Compression:
Stored size: 426 Bytes
Contents
# encoding: utf-8 module Synvert::Core # IfExistCondition checks if matching node exists in the node children. class Rewriter::IfExistCondition < Rewriter::Condition # check if any 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