module HTree::Traverse
Public Instance Methods
bogusetag?()
click to toggle source
# File htree/traverse.rb, line 16 def bogusetag?() BogusETag::Trav === self end
comment?()
click to toggle source
# File htree/traverse.rb, line 15 def comment?() Comment::Trav === self end
doc?()
click to toggle source
# File htree/traverse.rb, line 9 def doc?() Doc::Trav === self end
doctype?()
click to toggle source
# File htree/traverse.rb, line 13 def doctype?() DocType::Trav === self end
elem?()
click to toggle source
# File htree/traverse.rb, line 10 def elem?() Elem::Trav === self end
get_subnode(*indexes)
click to toggle source
# File htree/traverse.rb, line 18 def get_subnode(*indexes) n = self indexes.each {|index| n = n.get_subnode_internal(index) } n end
procins?()
click to toggle source
# File htree/traverse.rb, line 14 def procins?() ProcIns::Trav === self end
text?()
click to toggle source
# File htree/traverse.rb, line 11 def text?() Text::Trav === self end
traverse_text() { |text| ... }
click to toggle source
traverse_text
traverses texts in the tree
# File htree/traverse.rb, line 219 def traverse_text(&block) # :yields: text traverse_text_internal(&block) nil end
xmldecl?()
click to toggle source
# File htree/traverse.rb, line 12 def xmldecl?() XMLDecl::Trav === self end