Class: SGMLObject

Inherits:
TreeObject show all
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

#parsetree

Methods included from TextArray

#textarray

Constructor Details

This class inherits a constructor from TreeObject

Instance Method Details

#to_hObject


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_sObject


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(closetags=true)
  res	= ""

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

  res
end