Class: REXML::NotationDecl (Ruby 2.3.4)

In Files

  • rexml/doctype.rb

Class/Module Index [+]

Quicksearch

REXML::NotationDecl

Attributes

public[RW]
system[RW]

Public Class Methods

new(name, middle, pub, sys)
 
               # File rexml/doctype.rb, line 243
def initialize name, middle, pub, sys
  super(nil)
  @name = name
  @middle = middle
  @public = pub
  @system = sys
end
            

Public Instance Methods

name()

This method retrieves the name of the notation.

Method contributed by Henrik Martensson

 
               # File rexml/doctype.rb, line 266
def name
  @name
end
            
to_s()
 
               # File rexml/doctype.rb, line 251
def to_s
  notation = "<!NOTATION #{@name} #{@middle}"
  notation << " #{@public.inspect}" if @public
  notation << " #{@system.inspect}" if @system
  notation << ">"
  notation
end
            
write( output, indent=-1 )
 
               # File rexml/doctype.rb, line 259
def write( output, indent=-1 )
  output << to_s
end