Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v4.1.8) is shown here.
find_all(conditions)
public
Search for all nodes that match the
given conditions, and return them as an array.
# File actionview/lib/action_view/vendor/html-scanner/html/node.rb, line 98
def find_all(conditions)
conditions = validate_conditions(conditions)
matches = []
matches << self if match(conditions)
@children.each do |child|
matches.concat child.find_all(conditions)
end
matches
end