class Arboretum::DocTree::Elements::PIElement
An XML
Processing Instruction element in the doctree PIElements have no tags nor attributes nor contribute to document content, but are preserved in the tree Ex: <?…?> represents a processing instruction i.e. <?PITarget PIContent?>
Attributes
text[RW]
Public Class Methods
new(text='')
click to toggle source
Calls superclass method
Arboretum::DocTree::Elements::Element::new
# File lib/arboretum/doctree.rb, line 1278 def initialize(text='') super() # Element text @text = text # String end
Public Instance Methods
copy()
click to toggle source
PIElement
deep copy method
# File lib/arboretum/doctree.rb, line 1286 def copy PIElement.new(@text) end
dump_markup(type=:xml)
click to toggle source
# File lib/arboretum/doctree.rb, line 1290 def dump_markup(type=:xml) "<?#{self.text.gsub('&','&').gsub('<', '<').gsub('>','>')}?>" end
to_s()
click to toggle source
# File lib/arboretum/doctree.rb, line 1294 def to_s "<?#{self.text}?>" end