Class: SGMLObject
- Inherits:
-
TreeObject
- Object
- TreeObject
- SGMLObject
- Defined in:
- lib/rwd/xml.rb,
lib/rwd/sgml.rb
Direct Known Subclasses
Comment, Instruction, Special, Tag, Text
Instance Attribute Summary
Attributes inherited from TreeObject
#children, #closed, #level, #parent, #subtype, #text, #upordown, #visible
Instance Method Summary collapse
Methods inherited from TreeObject
#initialize, #inspect, #previous
Methods included from ParseTree
Methods included from TextArray
Constructor Details
This class inherits a constructor from TreeObject
Instance Method Details
#to_h ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/rwd/sgml.rb', line 12 def to_h res = "" parsetree("prechildren_to_sgml", "postchildren_to_sgml", res) res end |
#to_s ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/rwd/sgml.rb', line 4 def to_s res = "" parsetree("prechildren_to_s", "postchildren_to_s", res) res end |
#to_x(closetags = true) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/rwd/xml.rb', line 4 def to_x(=true) res = "" parsetree("prechildren_to_x", "postchildren_to_x", res, ) res end |