Method: HTML5::TreeBuilders::Hpricot::DocumentFragment#printTree

Defined in:
lib/html5/treebuilders/hpricot.rb

#printTree(indent = 0) ⇒ Object



176
177
178
# File 'lib/html5/treebuilders/hpricot.rb', line 176

def printTree(indent=0)
  childNodes.inject('') {|tree, child| tree + child.printTree(indent + 2) }
end