lib/treemap/tree_map.rb
# Returns the last node in this subtree.
Returns the last node in this subtree.
Returns the last node in this subtree .
def last
      node = self
      child = node.right
      while child
        node = child
        child = node.right
      end
      node
    end
def last node = self child = node . right while child node = child child = node . right end node end
Returns the last node in this subtree.
Returns the last node in this subtree .