From: "Peña, Botp" Date: 2009-03-04T12:37:23+09:00 Subject: Re: parse a tree From: Michael Malone [mailto:michael.malone@tait.co.nz] #.. # def tree_walk(array) # array.each { |item| (item.class == Array)? ^^^^^^^^^^^^^^^^^^^^ item.is_a? Array # tree_walk(item) : puts item } # end note that the above tree_walk is equivalent to, puts array