Method: Rubyvis::Dom::Node#visit_after

Defined in:
lib/rubyvis/dom.rb

#visit_after(f = nil, &block) ⇒ Object

Visits each node in the tree in postorder traversal, applying the specified function f. The arguments to the function are:<ol>

<li>The current node. <li>The current depth, starting at 0 for the root node.</ol>



263
264
265
266
267
# File 'lib/rubyvis/dom.rb', line 263

def visit_after(f=nil,&block)
  block=f unless f.nil?
  raise "Should pass a Proc" if block.nil?
  visit_visit(self,0,block, :after)
end