class Hirb::Helpers::ParentChildTree < Hirb::Helpers::Tree class <@value_method.call(node), :level=>level} @children_method.call(node).each {|e| build_node(e, level + 1)} end end end