From: Mike Perham Date: 2007-11-14T06:49:17+09:00 Subject: recursion with blocks I have a tree structure where I want to walk the structure and find a node based on a name. I'm unclear how to use recursion with blocks such that I can return the correct node. All code snippets I've seen have involved using "puts" to print out a node i.e. not returning anything to the top-level caller. What's the idiomatic Ruby for doing this? How do I return a value from a block called recursively? -- Posted via http://www.ruby-forum.com/.