Methods

Class/Module Index [+]

Quicksearch

HTML5::TreeBuilders::SimpleTree::Element

Public Instance Methods

printTree(indent=0) click to toggle source
# File lib/feed_tools/vendor/html5/lib/html5/treebuilders/simpletree.rb, line 83
def printTree indent=0
  tree = "\n|%s%s" % [' '* indent, self.to_s]
  indent += 2
  for name, value in attributes
    tree += "\n|%s%s=\"%s\"" % [' ' * indent, name, value]
  end
  for child in childNodes
    tree += child.printTree(indent)
  end
  tree
end
to_s() click to toggle source
# File lib/feed_tools/vendor/html5/lib/html5/treebuilders/simpletree.rb, line 79
def to_s
   "<#{name}>"
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.