Methods

Class/Module Index [+]

Quicksearch

HTML5::TreeBuilders::REXML::TextNode

Public Class Methods

new(data) click to toggle source
# File lib/feed_tools/vendor/html5/lib/html5/treebuilders/rexml.rb, line 159
def initialize data
  raw = data.gsub('&', '&amp;').gsub('<', '&lt;').gsub('>', '&gt;')
  @rxobj = ::REXML::Text.new(raw, true, nil, true)
end

Public Instance Methods

printTree(indent=0) click to toggle source
# File lib/feed_tools/vendor/html5/lib/html5/treebuilders/rexml.rb, line 164
def printTree indent=0
  "\n|#{' ' * indent}\"#{rxobj.value}\""
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.