find_first_recursive()
public
Find (and return) first subnode (recursively) for
which the block evaluates to true. Returns nil if none was found.
Show source
def find_first_recursive(&block)
each_recursive {|node|
return node if block.call(node)
}
return nil
end