Method: MList::Thread#tree

Defined in:
lib/mlist/thread.rb

#treeObject

Answers a tree of messages.

The nodes of the tree are decorated to act like a linked list, providing pointers to next and previous in the tree.



35
36
37
38
39
# File 'lib/mlist/thread.rb', line 35

def tree
  return nil if messages.size == 0
  build_tree unless @tree
  @tree
end