# File lib/feed_tools/vendor/html5/lib/html5/treebuilders/rexml.rb, line 75 def attributes= value value.each {|name, value| rxobj.attributes[name] = value} end
# File lib/feed_tools/vendor/html5/lib/html5/treebuilders/rexml.rb, line 69 def cloneNode newNode = self.class.new name attributes.each {|name,value| newNode.attributes[name] = value} newNode end
# File lib/feed_tools/vendor/html5/lib/html5/treebuilders/rexml.rb, line 79 def printTree indent=0 tree = "\n|#{' ' * indent}<#{name}>" indent += 2 for name, value in attributes next if name == 'xmlns' tree += "\n|#{' ' * indent}#{name}=\"#{value}\"" end for child in childNodes tree += child.printTree(indent) end tree end
Generated with the Darkfish Rdoc Generator 2.