Class REXML::NotationDecl
In: lib/rexml/doctype.rb
Parent: Child

Methods

name   new   to_s   write  

Attributes

public  [RW] 
system  [RW] 

Public Class methods

[Source]

     # File lib/rexml/doctype.rb, line 250
250:     def initialize name, middle, pub, sys
251:       super(nil)
252:       @name = name
253:       @middle = middle
254:       @public = pub
255:       @system = sys
256:     end

Public Instance methods

This method retrieves the name of the notation.

Method contributed by Henrik Martensson

[Source]

     # File lib/rexml/doctype.rb, line 274
274:     def name
275:       @name
276:     end

[Source]

     # File lib/rexml/doctype.rb, line 258
258:     def to_s
259:       "<!NOTATION #@name #@middle#{
260:         @public ? ' ' + public.inspect : '' 
261:       }#{
262:         @system ? ' ' +@system.inspect : ''
263:       }>"
264:     end

[Source]

     # File lib/rexml/doctype.rb, line 266
266:     def write( output, indent=-1 )
267:       output << ('   '*indent) if indent > 0
268:       output << to_s
269:     end

[Validate]