12spokes/tandem — comment on commit df1f5da1fd4cbaed9173ecbd361e2b5a7b03a534
File: app/helpers/tandem/pages_helper.rb line 159
By evizitei:

very clever way to traverse the tree. Maybe you could eliminate the need for the pre-definition of "generate" if these Procs weren't anonymous. Maybe if they were defined in a small object of their own as instance methods (and the constructor for the object or maybe some higher-level method accepted the page_groups collection) they could reference each other without being worried about definition order. Just thinking out loud here, not sure off the top of my head what other implications there would be.