REXML::Declaration (Class)

In: rexml/doctype.rb
Parent: Child

This is an abstract class. You never use this directly; it serves as a parent class for the specific declarations.

Methods

new   to_s   write  

Public Class methods

[Source]

# File rexml/doctype.rb, line 151
                def initialize src
                        super()
                        @string = src
                end

Public Instance methods

[Source]

# File rexml/doctype.rb, line 156
                def to_s
                        @string+'>'
                end

[Source]

# File rexml/doctype.rb, line 160
                def write( output, indent )
                        output << ('   '*indent) if indent > 0
                        output << to_s
                end

[Validate]