Class Hirb::Helpers::ParentChildTree
In: lib/hirb/helpers/parent_child_tree.rb
Parent: Hirb::Helpers::Tree

Methods

render  

Public Class methods

Starting with the given node, this builds a tree by recursively calling a children method. Takes same options as Hirb::Helper::Table.render with some additional ones below.

Options:

:value_method
Method or proc to call to display as a node‘s value. If not given, uses :name if node responds to :name or defaults to :object_id.
:children_method
Method or proc to call to obtain a node‘s children. Default is :children.

[Validate]