# 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

new(src)

[Source]

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

## Public Instance methods

to_s()

[Source]

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

write( output, indent )

[Source]

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

[Validate]