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 244
244:     def initialize name, middle, pub, sys
245:       super(nil)
246:       @name = name
247:       @middle = middle
248:       @public = pub
249:       @system = sys
250:     end

Public Instance methods

This method retrieves the name of the notation.

Method contributed by Henrik Martensson

[Source]

     # File lib/rexml/doctype.rb, line 267
267:     def name
268:       @name
269:     end

[Source]

     # File lib/rexml/doctype.rb, line 252
252:     def to_s
253:       "<!NOTATION #@name #@middle#{
254:         @public ? ' ' + public.inspect : '' 
255:       }#{
256:         @system ? ' ' +@system.inspect : ''
257:       }>"
258:     end

[Source]

     # File lib/rexml/doctype.rb, line 260
260:     def write( output, indent=-1 )
261:       output << to_s
262:     end

[Validate]