Method: HTMLTree::TreeElement#dump
- Defined in:
- lib/web/htmltools/element.rb
#dump(indent = 0, io = $stdout) ⇒ Object
Print out to $stdout (or given IO or String) a formatted dump of my structure.
101 102 103 104 105 106 |
# File 'lib/web/htmltools/element.rb', line 101 def dump(indent=0, io=$stdout) io << " " * indent io << self.to_s io << "\n" children.each { |ea| ea.dump(indent+1, io) } end |