class WhiteCloth::DataStructures::TreeBuilder
Helper class for constructing trees. Takes care of the basic manipulation of the trees, allowing some abstraction in the projections.
Public Class Methods
new()
click to toggle source
Default constructor. Creates an internal UUID, which is used to sequence objects added to the {TreeBuilder}.
Calls superclass method
# File lib/helpers/tree_builder.rb, line 29 def initialize # Call the parent to create the underlying stack super() # Create our sequence number @sequence = UUIDTools::UUID.random_create # Create the level stack @level_stack = Containers::Stack.new end