Class: XML

Inherits:
SGML show all
Defined in:
lib/rwd/xml.rb

Direct Known Subclasses

RWDTree

Instance Attribute Summary

Attributes inherited from Tree

#children, #data, #parent, #visible

Instance Method Summary collapse

Methods inherited from SGML

#buildobjects, #initialize, #to_h, #to_s

Methods inherited from Tree

#buildchildren, #buildobjects, #buildparents, #deletedummies, file, #initialize, #inspect, location, #markclosed, new_from_cache, new_from_cache2, #parse, #path

Methods included from ParseTree

#parsetree

Methods included from TextArray

#textarray

Constructor Details

This class inherits a constructor from SGML

Instance Method Details

#to_x(closetags = true) ⇒ Object



94
95
96
97
98
99
100
# File 'lib/rwd/xml.rb', line 94

def to_x(closetags=true)
  res	= ""

  parsetree("prechildren_to_x", "postchildren_to_x", res, closetags)

  res
end