From: Michael Lucas-Smith Date: 2001-12-31T15:43:26+09:00 Subject: [ruby-talk:29818] Re: Proc.class vs yield > > > >How about ... ? > > def children_of(name, people) > if person = people.detect { |who| who.name == name } > person.children > else > Array.new > end > end > There's another branch in this thread where I went through that example (well, pretty close to it) in the context of one, two and three block patterns. Michael