Method: Querly::Analyzer#find
- Defined in:
- lib/querly/analyzer.rb
#find(pattern) ⇒ Object
31 32 33 34 35 36 37 38 39 |
# File 'lib/querly/analyzer.rb', line 31 def find(pattern) scripts.each do |script| script.root_pair.each_subpair do |node_pair| if test_pair(node_pair, pattern) yield script, node_pair end end end end |