Reek::AST::Node#each_node

Parsed documentation:
View on GitHub
Carries out a depth-first traversal of this syntax tree, yielding
every Sexp of type `target_type`. The traversal ignores any node
whose type is listed in the Array `ignoring`.
Takes a block as well.

target_type - the type to look for, e.g. :send, :block
ignoring - types to ignore, e.g. [:casgn, :class, :module]
blk - block to execute for every hit. Gets passed in the matching element itself.

Examples:
  context.each_node(:send, [:mlhs]) do |call_node| .... end
  context.each_node(:lvar).any? { |it| it.var_name == 'something' }

Returns an array with all matching nodes.
TODO: without a block, this doesn't do what one might expect
Suggestions:
Please help! Open an issue on GitHub if this assessment is incorrect.