--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: descendant
comment: 
- !ruby/struct:SM::Flow::P 
  body: <tt>filter</tt> rebuilds the tree without some components.
- !ruby/struct:SM::Flow::VERB 
  body: "  node.filter {|descendant_node| predicate } -&gt; node\n  loc.filter {|descendant_loc| predicate } -&gt; node\n"
- !ruby/struct:SM::Flow::P 
  body: <tt>filter</tt> yields each node except top node. If given block returns false, corresponding node is dropped. If given block returns true, corresponding node is retained and inner nodes are examined.
- !ruby/struct:SM::Flow::P 
  body: <tt>filter</tt> returns an node. It doesn't return location object even if self is location object.
full_name: Hpricot::Container::Trav#filter
is_singleton: false
name: filter
params: (&block) {|descendant| ...}
visibility: public
